Wednesday, November 13, 2019

ReactJS working on IE 11

IE 11 ReactJS working using following Steps:

I guess you had already created the ReactJS basic app. If not you can use Create ReactJS link for creating the basic app.

Step 1:  Go the package.json file and add the following statement
"development": [
      "ie 11",
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
Step 2: Go to src folder and edit the index.js file add below import statments
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
Step 3: Go to the root of the project and delete node_modules folder as seen below image


Step 4: Once the node_modules folder is deleted then type npm install (or) yarn install
Step 5: On completion of the installation. Go to the ie11 browser check type http://localhost:3000/

Conclusion: Using the above steps I guess without any issues ReactJS is working in the IE 11.
If you required any assistance please comment in below.

No comments:

Post a Comment