DEV Community

Discussion on: Persisting your React state in 9 lines

Collapse
 
stephanieraymos profile image
Stephanie Raymos

Thanks for this! Can you explain how we would actually use this within the application?

Collapse
 
selbekk profile image
selbekk

Hi Stephanie!

You would copy the source code into your project, and import the usePersistentState hook where you would want to use it