How to dispatch an action in a react class when you click a button? - React-Redux

前端 未结 0 763
忘了有多久
忘了有多久 2020-12-15 05:42

How can I dispatch an action to redux store when the user clicks on a button, Do I need mapStateToProps and mapDispatchToProps?

  handleClick(e) {
    e.curre         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题