lundi 16 janvier 2017

React Redux composition

I want to recreate typical UI pattern using React and Redux - Modal Window with data form containing 4 inputs/selects UI elements. I read a lot about smart-container components and dumb presentational components, but don't have enough practice to figure out the best composition pattern in this particular case.
Currently I figured out the following components to compose:

<ModalContainer />
<ModalWindow /> 
<Input 1/> ... <Input 2/>

Please, advice:

  1. Witch components should be considered Smart and Dumb?
  2. How to implement proper data flow with Redux?
  3. How component composition may look like in this case?
  4. Any canonical code samples or blogs to read about?

Aucun commentaire:

Enregistrer un commentaire