Using redux with react hooks
问题 I'm trying to figure out the best way to use redux with react hooks. I saw the following How to use React hooks + Redux However I'm not convinced this is the best way to go. Does anyone have any alternative ideas? I also saw the following and seems quite good. https://www.npmjs.com/package/redux-react-hook Thanks 回答1: The official react-redux package provide hooks since v7.1. Redux hooks can be used instead of the connect(mapStateToProps, mapDispatchToProps) function. useSelector() Extract