react-localstorage-hoc
A higher order function that wraps React components saving their state in persistent localStorage. Similar to react-localstorage but implemented as a higher order component
Usage
npm install react-localstorage-hoc
Component { let counter = thisstate return <div onClick= this> 'Clicked ' + counter + ' times' </div> } Counter