DEV Community

K-Sato
K-Sato

Posted on

Make your react apps compatible with IE

Installation

npm install react-app-polyfill
Enter fullscreen mode Exit fullscreen mode

or

yarn add react-app-polyfill
Enter fullscreen mode Exit fullscreen mode

Import entry points

Import the packages at the top of your index.tsx or index.jsx.

import 'react-app-polyfill/ie9';
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
Enter fullscreen mode Exit fullscreen mode

That's it! Now your react app should run on IE without any errors.

Resources

Top comments (1)

Collapse
 
karausa0106 profile image
karausa0106

Thank you for a very detailed guide that made it possible for me to make responsive applications IE compatible quickly. mapquest directions