A demo on how to use react hooks for everything. DEMO
A few examples are show cased here:
- Using custom useFormState to mask complexity of getting data from context / state
- Using custom useFormState to mask complexity of getting data from context / state
- Using custom useGraph hook, which accepts a graph of components and relationships. This allows us to build a complex form with conditional rendering fields.
- An exaggerated version of the previous example, where changing the first field will copy the value to all the other X fields
This project is built on top of NextJS for convenience
npm install
npm run dev
- (For production build)
npm run build && npm start