Giter Site home page Giter Site logo

IE 10 support about react-lifecycles-compat HOT 5 CLOSED

reactjs avatar reactjs commented on July 28, 2024
IE 10 support

from react-lifecycles-compat.

Comments (5)

bvaughn avatar bvaughn commented on July 28, 2024

The error you reference is only thrown if the Component you polyfill doesn't have an isReactComponent property on its prototype. This property is set by React on Component (and PureComponent), and your component should inherit it so long as it extends one of those two classes.

Since you mention IE 10 specifically, it does not support JavaScript class syntax. This means that you'll need to use something like Babel to compile your code before running it.

If you are doing this and still seeing the error, we'll need more information bout how to reproduce the problem. (For example, you can provide a Code Sandbox that shows all of your code, or an example GitHub repo that could be checked out and run locally.

PS. Can you load this URL in IE 10 by chance?
https://build-bmxsryfowt.now.sh

from react-lifecycles-compat.

miketamis avatar miketamis commented on July 28, 2024

https://build-bmxsryfowt.now.sh isn't loading in ie 10, because you haven't polyfilled Set and Map.

https://reactjs.org/docs/javascript-environment-requirements.html

from react-lifecycles-compat.

bvaughn avatar bvaughn commented on July 28, 2024

I'm familiar with that requirement. 😄 The app I deployed to build-bmxsryfowt.now.sh used the polyfills mentioned on ReactJS.org specifically. I messed up though by putting them in App.js rather than index.js (after React has been initialized in other words). Try again:

https://build-billqnpauw.now.sh

from react-lifecycles-compat.

miketamis avatar miketamis commented on July 28, 2024

It works 😄
Must be something we done in our project. I'll investigate more.

from react-lifecycles-compat.

bvaughn avatar bvaughn commented on July 28, 2024

When you figure out the cause– let me know, if you think about it. It might be helpful in the future for someone else. 😄

from react-lifecycles-compat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.