import React from 'react';

export default () => (
  <form name="contact" method="POST" data-netlify="true" action="/">
    <p>
      <label>Your Name: <input type="text" name="name" /></label>   
    </p>
    <p>
      <label>Your Email: <input type="email" name="email" /></label>
    </p>
    <p>
      <label>Message: <textarea name="message"></textarea></label>
    </p>
    <p>
      <button type="submit">Send</button>
    </p>
  </form>
);
import React from 'react';

export default () => (
  <form name="contact" method="POST" data-netlify="true" action="/">
    <input type="hidden" name="contact" value="contact" />  
    <p>
      <label>Your Name: <input type="text" name="name" /></label>   
    </p>
    <p>
      <label>Your Email: <input type="email" name="email" /></label>
    </p>
    <p>
      <label>Message: <textarea name="message"></textarea></label>
    </p>
    <p>
      <button type="submit">Send</button>
    </p>
  </form>
);
Add hidden input w/ name
Add hidden input w/ name
