我得到这个错误
_react.default.memo不是函数
和wrapWithConnect。
这是一个react-native项目,在使用connect函数将调度程序连接到我的react组件之前,它运行良好:
套件版本:
"react": "16.5.0",
"react-redux": "^6.0.1",
"redux": "^4.0.1",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
Run Code Online (Sandbox Code Playgroud)
码
const mapDispatchToProps = dispatch => {
return {
sendEmail: (email, navigateMap) => dispatch(sendEmail, navigateMap))
export default connect(null, mapDispatchToProps)(Login)
Run Code Online (Sandbox Code Playgroud)