microsoft / redux-dynamic-modules

Modularize Redux by dynamically loading reducers and middlewares.
https://redux-dynamic-modules.js.org
MIT License
1.07k stars 116 forks source link

Can you config with react-router with multi pages? #114

Closed xuanlongvts closed 4 years ago

xuanlongvts commented 4 years ago

Now, you have put all pages in one file https://github.com/microsoft/redux-dynamic-modules/blob/master/packages/widgets-example/src/App.js

But, with a big application, there are many pages, so we have to use react-router to config router for entries app.

Can you demo with an application with react-router-dom?

Thank you!

sinack-old commented 4 years ago

I pushed a simple demo using redux-dynamic-modules with react-router-dom and connected-react-router.

Please use this as a reference. demo

navneet-g commented 4 years ago

Thanks @sinack ... Pretty cool 👍