5bb73df804
BREAKING CHANGE: Migrate your onSubmit handlers to return a `message` instead of `value` |
||
---|---|---|
.. | ||
components | ||
cypress/e2e | ||
hooks | ||
locales | ||
models | ||
pages | ||
public | ||
styles | ||
.eslintrc.json | ||
.gitignore | ||
.npmrc | ||
cypress.config.ts | ||
i18n.json | ||
next.config.js | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
README.md | ||
tailwind.config.js | ||
tsconfig.json |
example
This is an example for using react-component-form
inside a Next.js application with translations thanks to next-translate.
The application shows how to use the <Form />
component with the useForm
hook to validate and submit a form with a name
input and an email
input.
The interesting code is in ./components/FormExample.tsx.