by rtpg · 9y ago · 0 comments
An alternative I ended up going with is simply storing the app state in its own object, completely outside the React system.
This is a bit similar to using Redux, but you end up not getting lost in that tooling. You have to remember to manually send data over to the components (for example when you get API responses), since you don't get the auto-updating `setState` simply from storing app state in a component. But ultimately it lets you nicely separate the "backend" of your app with the view.