But I want to divide the form into steps, so what would you recommend? And is formik-wizard good to use since it's no longer maintained (according to the author)?
A second question, maybe related to the first one, I saw a tutorial on YouTube on how to make steps with no extra libraries, and he used state only for current page number, so when it changes the form fields changes. My question is what does useState exactly do after its function is called? Cause he only updated the number, and then the form fields changed without the need of reassigning other properties like currentPage.
just store the form state globally in redux or context, and you can fetch it in any component you want
Maybe you can use react-albus
Обсуждают сегодня