- In your
ReactDOM.rendercall, wrap your components in aProviderto provide the store to connected components. - Connect the
Boardcomponent, mapping thelistsproperty of the state to thelistsprop of the board component. - Check that your initial state is being rendered at this point.
- Connect the
Listcomponent to give you access to thedispatchprop. - In the
Listcomponent, dispatch theaddCardaction when theAddForm'sonAddcallback is fired.- You can use the card's index as its
id.
- You can use the card's index as its
- Test out adding a new card to a list.
- Connect the
Boardcomponent to give you access to thedispatchprop. - In the
Boardcomponent, dispatch theaddListaction when theAddForm'sonAddcallback is fired.- You can use the list's index as its
id.
- You can use the list's index as its
- Test out adding a new list to the board.