__WEBPACK_IMPORTED_MODULE_4_react___default.a.memo is not a function

Autumn's Fall picture Autumn's Fall · Apr 15, 2019 · Viewed 12.8k times · Source

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 [email protected] [email protected]

But it didn't work.

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

enter image description here

enter image description here

Answer

Mukesh Tivari picture Mukesh Tivari · Apr 15, 2019

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 [email protected] [email protected]

for more info click here