__WEBPACK_IMPORTED_MODULE_4_react___default.a.memo 不是函数 [英] __WEBPACK_IMPORTED_MODULE_4_react___default.a.memo is not a function

查看:38
本文介绍了__WEBPACK_IMPORTED_MODULE_4_react___default.a.memo 不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是将应用程序与 redux 和 react-redux 连接函数以及状态和调度连接起来.它编译没有问题,但结果没有显示.它看起来像下面.

我试图找到它,发现我必须更改反应版本.

$ sudo npm install --save react@16.4.0 react-dom@16.4.0

但是没有用.

我正在学习本教程.

解决方案

you're using wrong version of React, React.memo 引入了 版本16.6.0 所以,试试这个命令安装正确的版本

npm install --save react@16.6.0 react-dom@16.6.0

欲了解更多信息,请点击此处

I just connect the app with redux and react-redux connect function, together with state and dispatches. It compiled without problems but the results are not showing. And it looks like below.

I tried to find it and found that i have to change react version.

$ sudo npm install --save react@16.4.0 react-dom@16.4.0

But it didn't work.

I am following this tutorial. https://www.youtube.com/watch?v=BxzO2M7QcZw

解决方案

you're using wrong version of React, React.memo is introduced with version 16.6.0 so, try this command to install the right version

npm install --save react@16.6.0 react-dom@16.6.0

for more info click here

这篇关于__WEBPACK_IMPORTED_MODULE_4_react___default.a.memo 不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆