I'm using React and Redux (and also Redux-thunk for async tasks) in my app. So, when I need to write some data to
Yes, it is necessary to write a
action and a corresponding
reducer to that action.
This is because
Redux is built based on the
Flux architecture uses
reducers to modify a particular state in the state tree. So, it is required and you can't skip it.
If you feel this is too much of boilerplate code, you should try mobx