I'm working with another developer using this starter kit, and I just have a quick question regarding a best practices we don't quite agree on.
Which is the best approach for passing redux action creators into your components, through the container component and down into the components, or callings/dispatching them directly from the component you need? Second approach means you have to run mapStateToProps and connect etc on child components, which I thought was best practice to avoid.
I'm working with another developer using this starter kit, and I just have a quick question regarding a best practices we don't quite agree on.
Which is the best approach for passing redux action creators into your components, through the container component and down into the components, or callings/dispatching them directly from the component you need? Second approach means you have to run
mapStateToProps
andconnect
etc on child components, which I thought was best practice to avoid.Thanks in advance!