React Localstorage Is Not Defined