Closed mdvanes closed 7 years ago
Formspree seems like a good option.
Waiting for sign-off on design.
A problem arises when importing materialize-css JS. Since this has a dependency with jquery, remove it all together and rewrite the small amount of code needed for form elements.
Also make a React component for a form element that renders:
<div className="input-field col s6">
<input id="contact_email" type="email" className="validate" required/>
<label htmlFor="contact_email" data-error="Vul een geldig e-mail adres in">Uw e-mail</label>
</div>
Almost done, only needs feedback when message has been sent correctly.
In this case a JSON is returned of this form:
{
"next": "/thanks?next=http%3A%2F%2Fwww.conversaschool.nl%2F",
"success": "email sent"
}
Investigate: https://formspree.io/