Deneb ReactJs documentation
Forms and comments
Connect the contact form and newsletter, and turn on blog comments in Deneb React.
Contact form
The form is in src/Components/contact/index.jsx. By default it only shows the submitted values in a browser alert, so it needs connecting before you publish:
onSubmit={(values, actions) => {
// You can POST to formAction here if needed
setTimeout(() => {
alert(JSON.stringify(values, null, 2));
actions.setSubmitting(false);
}, 1000);
}}
Replace that code with a request to your form service, using the address and field names it gives you. The form’s fields are in the defaultFormFields list at the top of the same file.
Newsletter
The newsletter settings are in footerData.newsletter at the top of src/Components/footer/index.jsx. Set form.action to the address your email service gives you.
Blog comments
Deneb uses Disqus for comments. Open src/config/disqus.js and replace the sample shortname:
shortname: 'YOUR_DISQUS_SHORTNAME',
To get a shortname, register your site at disqus.com. Comments stay off until you add it.