codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

_react.default.memo is not a function

Open Luchanso opened this issue 7 years ago • 3 comments

🐛 bug report

Description of the problem

Hi, React API have function React.memo, but when I try to use it, I fail 😞

Example:

// TypeError _react.default.memo is not a function
const Test = React.memo(() => <div />);

Link to sandbox: link

Luchanso avatar Jan 04 '19 12:01 Luchanso

Hey @Luchanso , React.memo() has been added in 16.6.0, and you're using 16.5.2 in the linked sandbox.

lbogdan avatar Jan 04 '19 12:01 lbogdan

@lbogdan yeah, are you sure.

Luchanso avatar Jan 07 '19 23:01 Luchanso

Yes it is working on 16.8.6 version

babul101 avatar May 30 '19 03:05 babul101