I am the maintainer of a gatsby starter gatsby-starter-i18n-bulma. It has a form to send an email message, recently i tried to “improve the code” transforming the code in a more modular way. I wanted to try to transform part of it into a functional component to be able to use Hooks. I was able to change the code, and the build was ok on the Netlify server, but when i try to test the form, i receive only empty mesages . What could be? Can you give me some advice? Does anybody tried this?
The contact form is in a template and the form contact itself is implemented in the ContactForm component.
For what it’s worth, I created a drop-in NPM package for integrating Netlify Forms into React-based SSGs (Next and Gatsby, really) that ‘just works’ - feel free to take a look through the source and see if your code matches up. Getting Forms to work just right can be tricky.
I also wrote a 2-pt series that goes through all the little nits and crannies
Hopefully those help! If you run into any snags, let us know and we’ll be happy to help!