revolunet / react-mailchimp-subscribe

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

what xxxx? before #8

Closed gananggww closed 6 years ago

gananggww commented 6 years ago

what xxxx? before us13 action: '//xxxx.us13.list-manage.com/subscribe/post?u=695fze434a101fd2a718afddde8&id=72al97ece5'

revolunet commented 6 years ago

Of course you need to replace my url with your one :)

gananggww commented 6 years ago

where can i put my apikey and listID?

gananggww commented 6 years ago

please, i need more documentation

revolunet commented 6 years ago

So you take the README example, put it in your app, and replace the "action" value with your own mailchimp form url, that you can get from their interface, that should look like that

(I assume you now react, npm, webpack)

gananggww commented 6 years ago

oke thx. how can i custom a textfield and submit button sir?

gananggww commented 6 years ago

yeah i can styling... how can i trigered onClick after subscribed

revolunet commented 6 years ago

there is no succes/error/callback at the moment but contributions are welcome.

this would involve adding a this.props.onSuccess() here : https://github.com/revolunet/react-mailchimp-subscribe/blob/master/src/index.js#L42 and same for errors.