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:
- Witch components should be considered Smart and Dumb?
- How to implement proper data flow with Redux?
- How component composition may look like in this case?
- Any canonical code samples or blogs to read about?
Aucun commentaire:
Enregistrer un commentaire