Skip to content

Instantly share code, notes, and snippets.

@wdchris
Last active May 18, 2020 17:28
Show Gist options
  • Save wdchris/7d009b67e39ba89d4aa0d4b92bca27a2 to your computer and use it in GitHub Desktop.
Save wdchris/7d009b67e39ba89d4aa0d4b92bca27a2 to your computer and use it in GitHub Desktop.
Sample React markup for Netlify forms
<form
name="register"
data-netlify="true"
data-netlify-honeypot="sneaky-sneaky"
onSubmit={handleSubmit}
>
<input
type="text"
name="email"
placeholder="Enter your email"
onChange={e => setEmail(e.target.value)}
></input>
<button type="submit">Register</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment