Better HN
topnewbestaskshowjobs
Log inSign up

dannieboi

1 karma · joined Sep 17, 2016 (10y ago) · 1 submissions

Submissions

comment 10y ago · link · parent

I agree. I don't necessarily want my routes to be declared in react. I'm currently looking into using router5 (https://github.com/router5/router5). The library also has integration plugins for react and redux.

Also, check out https://medium.com/@mweststrate/how-to-decouple-state-and-ui.... Michael Westrate talks about using your state container to control routing, instead of letting the components do it then syncing current route to state container. He is the author of mobx and uses it in his example, but I imagine it would work for redux scenarios too.