re: React Beginner Question Thread ⚛ VIEW POST

VIEW FULL DISCUSSION

I made an app, using react/react-router, now I need to make another one but I want to add redux to this stack, because is awesome. If in simple react, I kept some little global state in App and other state was kept in each component(by route / code splitting), how should I keep this state for entire application in redux? Should I also split state by route somehow? Thanks!

I think code splitting in Redux is a bit harder than it should have been. I don't really have a great solution for this, but something like stackoverflow.com/a/33044701/458193 works (it uses RR3 API but that's not the important part).

code of conduct - report abuse