1
1
mirror of https://github.com/theoludwig/react-component-form.git synced 2024-07-17 07:30:13 +02:00
react-component-form/example
2023-10-23 23:26:27 +02:00
..
components chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
cypress/e2e chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
hooks chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
locales chore(example): fix translation with global message 2022-08-26 22:53:59 +02:00
models chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
pages chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +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 test: add e2e automated tests 2022-08-26 23:47:48 +02:00
.npmrc chore: add example 2022-08-26 20:19:31 +02:00
cypress.config.ts chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
i18n.json chore: add example 2022-08-26 20:19:31 +02:00
next.config.js chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
package-lock.json chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
package.json chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
postcss.config.js chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
README.md chore: add example 2022-08-26 20:19:31 +02:00
tailwind.config.js chore: better Prettier config for easier reviews 2023-10-23 23:26:27 +02:00
tsconfig.json style: fix linting 2023-04-02 22:10:52 +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.