Skip to content

Commit

Permalink
Method Post?
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelley Bassett committed Mar 23, 2024
1 parent f3a9cd7 commit f8e7810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ContactForm.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react'
import { useForm, ValidationError } from '@formspree/react'

export default function ContactForm({ Component, pageProps }) {
export default function ContactForm() {
const [state, handleSubmit] = useForm('xwkaqlnd')
if (state.succeeded) {
return <p>Thanks! Your message has been sent.</p>
}
return (
<form onSubmit={handleSubmit}>
<form onSubmit={handleSubmit} method="POST">
<label htmlFor="name">Name</label>
<input id="name" type="text" name="name"></input>
<ValidationError prefix="Name" field="name" errors={state.errors} />
Expand Down

0 comments on commit f8e7810

Please sign in to comment.