This commit is contained in:
@@ -132,8 +132,7 @@ export const Button = styled.button`
|
|||||||
|
|
||||||
// Credit to https://www.benmvp.com/blog/sync-localstorage-react-usereducer-hook/
|
// Credit to https://www.benmvp.com/blog/sync-localstorage-react-usereducer-hook/
|
||||||
const usePersistReducer = () => {
|
const usePersistReducer = () => {
|
||||||
const [savedState, saveState] = useLocalStorage(
|
const [savedState, saveState] = useState(
|
||||||
'state',
|
|
||||||
initialState,
|
initialState,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user