Skip to content

A responsive form using useForm hook and react-query, server mocked with miragejs

Notifications You must be signed in to change notification settings

CookedIdeas/react-form

Repository files navigation

React form

A responsive form using useForm hook and react-query.

react form

Features

  • Inform user : if there is errors in inputs fulfillment, if submission is successful, if submission is not successful
  • All inputs data from an array

To test it, set VITE_IS_TEST as true in .env

For production, change api url to yours in .env VITE_API_URL='your-api-url' and in utils/index.jsx → usePostForm hook → customFetch.post('/your-api-route', mailBody)

Project

React powered by Vite

With :

Use it !

Download zip or clone repo and...

  yarn
  yarn run dev

Happy coding ;)

About

A responsive form using useForm hook and react-query, server mocked with miragejs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages