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

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -