I have a multi step form. When I move to the next page and decide to go back to the previous page to make changes, inputs are cleared. How can I manage this please?
Here’s a recreation of the multi step form: https://codesandbox.io/s/agitated-spence-q3vtqw
2
Answers
You can solve this in 3 ways.
Then you can save formData.
If you want detailed solution, I can help.
Good luck.
I’ll recommend you to use
localstorage
.so,
Good luck.