reactjs - DRY react-router's getComponent functions -
routing react-router, redux , redux-saga entails lot of repeated code, have here. 21 lines single route. in app have dozens of routes, important dry out somehow. otherwise file routes.js
mess 1000+ lines.
any ideas?
finally came this. works fine , helps make 1 route declaration 4 lines simple routes , 8 using sagas , childroutes.
Comments
Post a Comment