react-use-sessionstorage
Fork of https://github.com/dance2die/react-use-localstorage but then uses session storage instead of local storage.
How to use it
;;; ; { const item setItem = ; return <div className="App"> <h1>Set Name to store in Local Storage</h1> <div> <label> Name:' ' <input type="text" placeholder="Enter your name" value=item onChange= /> </label> </div> </div> ;} const rootElement = document;ReactDOM;