revolunet / react-mailchimp-subscribe

React subscribe form for Mailchimp.
https://revolunet.github.io/react-mailchimp-subscribe/
245 stars 48 forks source link

How to manipulate default value? #18

Open johnnetr opened 6 years ago

johnnetr commented 6 years ago

Tried < MailchimpSubscribe url={url} EMAIL={this.state.email} /> to retrieve a default value and then executed a function to automatically press the "submit" button. I failed.

Are there any props of < MailchimpSubscribe /> that I can pass in email data?

Automatically execute "Submit" button: autoSubmit = () => { < MailchimpSubscribe url={url} /> } Is that the correct way to do it?