Skip to content

Instantly share code, notes, and snippets.

@gaurangrshah
Created May 16, 2019 00:59
Show Gist options
  • Save gaurangrshah/dc4c59b8bcce3bf412cf75d9a7bcbe5c to your computer and use it in GitHub Desktop.
Save gaurangrshah/dc4c59b8bcce3bf412cf75d9a7bcbe5c to your computer and use it in GitHub Desktop.
netlify form boilerplate - no js needed
import React from 'react';
export default () => {
return (
<div className="call mt-5 w-10 ml-7">
<div className="call-box-top">
<div className="call-phone">
<form
name="contact-form"
method="post"
data-netlify="true"
data-netlify-honeypot="bot-field"
>
<input name="name" placeholder="Your Name" type="text" className="ml-2" />
<input name="email" placeholder="[email protected]" type="email" className="ml-2" />
<button type="submit" className="ml-4 btn btn-primary btn-lg">Send</button>
</form>
</div>
</div>
</div>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment