4 Comments

Suppose I'm using multiple form, we normally use local state for handling this kind of form. though here we don't save the data. when we refresh the page data gone. In this case session storage could be a good option?

Expand full comment

Great question!

Yes, sessionStorage is a good option in this case. It temporarily preserves form data across page reloads, so users won’t lose their inputs if they refresh.

Just remember to avoid storing sensitive information!

Hope this helps. Have a great day!

Expand full comment

Thanks for your great suggestions...

Expand full comment

You're welcome!

Expand full comment