__WEBPACK_IMPORTED_MODULE_4_react___default.a.memo 不是函数 [英] __WEBPACK_IMPORTED_MODULE_4_react___default.a.memo is not a function
问题描述
我只是将应用程序与 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屋!