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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -