LoginSignup
0
0

More than 5 years have passed since last update.

react-redux で ***** is not a function と怒られる

Posted at

react-redux で ***** is not a function と怒られる

解決策

connect関数にエラーで怒られていたアクションを渡していなかったのが原因だった。

LoginForm.js
export default connect(mapStateToProps, { emailChanged, passwordChanged, nicknameChanged, loginUser })(LoginForm);

どうやらreactのcomponentとreduxのアクションは全く繋がりがないのでそれをconnectするようである。そうすることでcomponent内でアクションが起きることができるようになる。

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0