Do not use typeof variable === 'Symbol' check(ie 11 has an issue with it) #2391
Unanswered
pavelspichonak
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use react-create-app and I use polyfills for ie 11 from react-create-app
react-create-app does not use
transform-typeof-symbol
babel plugin anymore because of performance and other issues.Here is MR where they remove this babel plugin and describe the reason in more details.
So now this line is not working in ie 11 and we get this error in ie 11 when for
Cell
property we use component wrapped withReact.memo
:Objects are not valid as a React child (found: object with keys {$$typeof, type, compare}). If you meant to render a collection of children, use an array instead.
Instead of this code:
We need to check like this:
and it will work in ie11
Related MR
cc @pengx17 @tannerlinsley
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions