This repository has been archived on 2024-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
react-component-form/example
2022-08-26 21:39:42 +02:00
..
components chore: add example 2022-08-26 20:19:31 +02:00
hooks chore: add example 2022-08-26 20:19:31 +02:00
locales chore: add example 2022-08-26 20:19:31 +02:00
models chore: add example 2022-08-26 20:19:31 +02:00
pages chore: add example 2022-08-26 20:19:31 +02:00
public chore: add example 2022-08-26 20:19:31 +02:00
styles chore: add example 2022-08-26 20:19:31 +02:00
.eslintrc.json chore: add example 2022-08-26 20:19:31 +02:00
.gitignore chore: add example 2022-08-26 20:19:31 +02:00
.npmrc chore: add example 2022-08-26 20:19:31 +02:00
i18n.json chore: add example 2022-08-26 20:19:31 +02:00
next.config.js style: fix linting with prettier 2022-08-26 21:39:42 +02:00
package-lock.json chore: add example 2022-08-26 20:19:31 +02:00
package.json chore: add example 2022-08-26 20:19:31 +02:00
postcss.config.js chore: add example 2022-08-26 20:19:31 +02:00
README.md chore: add example 2022-08-26 20:19:31 +02:00
tailwind.config.js chore: add example 2022-08-26 20:19:31 +02:00
tsconfig.json chore: add example 2022-08-26 20:19:31 +02:00

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.