Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 576 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 576 Bytes

multi-step form

This repo produces multi-step form which aims to be more generic, reusable, strictly typed and implement zod validation with react-hook-form.

Whenever you encounter multi-step form, irrespective of the styles, there are many ways to accomplish it. In this repo we are going to use react's context api that is wrapped around the multi-step form enabling state data across the sub-components of the multi-step form.

so, essentially we need form default values, zod scheme and form details out of react-hook-form.

Enjoy working with multi-step form.