Improve the reducer. By default, it must return the initial state.
The case ADD_LIST should call the addListResult method, the case ADD_WORD: addWordResult.
Cases DELETE_LIST and DELETE_WORD - deleteListResult and deleteWordResult, respectively.
At the same time, you always need to return the result of the call of the method with the corresponding arguments.
Cases SET_ERROR And SET_LOADING should save passed payload in the field error or loading, respectively.
When SET_STORAGE_DATA, you need to merge the payload to the copy of the state.

This task is part of the Full-Stack JavaScript Course.
If you have any issues with it, you can ask for community help below the post.
Feel free to help others if you’ve already solved the task.