What is the purpose of using bindActionsCreators?
What is the purpose of using bindActionsCreators?
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.
|
Bookmarks