Back

Using localStorage

Get item

localStorage.getItem('userInfo')

Set item

localStorage.setItem('userInfo', JSON.stringify(action.payload))

Remove item

localStorage.removeItem('userInfo')

Delete all

localStorage.clear()