Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React, Redux, React-Router?

The question of the application architecture. Suppose there are a lot of components (look at the picture) (mains) on a page. What better use to switch the main children's components (active / not active)? And pages (1, 2, 3, next)? Can I use react-router for both tasks? P.S.: I use ReactJS for rendering

like image 852
evgkch Avatar asked Nov 02 '16 18:11

evgkch


1 Answers

I would not use react-router for results filtering. Since you are using Redux, you can split your reducers in to main sections and keep the state of active/not active as well as current page per section all in one store.

like image 95
Eric Kambestad Avatar answered Oct 11 '22 14:10

Eric Kambestad