npm install --save-dev netlify-plugin-formspree // or yarn add -D netlify-plugin-formspree Then, in yournetlify.tomlfile include the formspree plugin: [[plugins]] package = "netlify-plugin-formspree" Once the plugin is installed, if there is aformspree.jsonfile in your project root, it wi...
Install Formspree’s CLI as a dependency using npm or yarn: # with npmnpminstall-save@formspree/cli # with yarnyarnadd@formspree/cli Add Formspree’s deploy script to yourpackage.jsonas shown below: {"name":"my-cool-site","version":"0.1.0","dependencies":{"@formspree/cli":"^0.9.6",...
README.md Formspree CLI The command line interface for Formspree. Installation Run the following to install on your machine: npm i -g @formspree/cli Releasing Run the following to publish a new version: npm run releaseAbout No description, website, or topics provided. Resources Readme ...
npm install --save @formspree/react Then paste the following code snippet into the contactForm.js file: import { useForm, ValidationError } from "@formspree/react"; export default function ContactForm() { const [state, handleSubmit] = useForm("YOUR_FORM_ID"); if (state.succeeded) { retur...
WARNING:You should place this in a hidden input as done in the example below. An example input element that uses the name="_subject" attribute to set the subject of the email.
npm install --save @formspree/react Then paste the following code snippet into the contactForm.js file: import { useForm, ValidationError } from "@formspree/react"; export default function ContactForm() { const [state, handleSubmit] = useForm("YOUR_FORM_ID"); if (state.succeeded) { retur...