PDA

View Full Version : What is the purpose of using bindActionsCreators?



adulistravel
04-30-2020, 07:23 PM
What is the purpose of using bindActionsCreators?

dennis123
05-06-2020, 12:37 AM
Hi Friend,
The only use case for bindActionCreators is when you want to pass some action creators down to a component that isn't aware of Redux, and you don't want to pass dispatch or the Redux store to it. For convenience, you can also pass an action creator as the first argument, and get a dispatch wrapped function in return.