D
D
Daniil Sugonyaev2018-03-12 10:44:05
JavaScript
Daniil Sugonyaev, 2018-03-12 10:44:05

Is it possible to store state in localStorage?

Created a simple todo application https://github.com/coolswood/todo-list here are the sources. Compiled - https://coolswood.github.io/todo-list/index.html . I would like that the created tasks are not lost when the page is reloaded. I'm trying to save state to local storage.

[
{id:0, text: 'Описание задачи'}
...
]

How to save an array of objects in storage in react and get it in state?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
davidnum95, 2018-03-12
@coolswood

redux-persist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question