How to use local storage in react

local storage is in the browser, you should be able to save from any component to localstorage , to retrieve data from the storage, if you want the component to have access to the data before or while it loads you can either put it in componentDidMount or in the constructor of the component.
Post your code if you want specific answers.