You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React 16 depends on the collection types [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) and [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). If you support older browsers and devices which may not yet provide these natively (e.g. IE < 11) or which have non-compliant implementations (e.g. IE 11), consider including a global polyfill in your bundled application, such as [core-js](https://github.com/zloirock/core-js).
9
+
React 18 supports all modern browsers (Edge, Firefox, Chrome, Safari, etc).
10
10
11
-
A polyfilled environment for React 16 using core-js to support older browsers might look like:
11
+
If you support older browsers and devices such as Internet Explorer which do not provide modern browser features natively or have non-compliant implementations, consider including a global polyfill in your bundled application.
12
12
13
-
```js
14
-
import'core-js/es/map';
15
-
import'core-js/es/set';
13
+
Here is a list of the modern features React 18 uses:
React also depends on `requestAnimationFrame` (even in test environments).
25
-
You can use the [raf](https://www.npmjs.com/package/raf) package to shim `requestAnimationFrame`:
26
-
27
-
```js
28
-
import'raf/polyfill';
29
-
```
18
+
The correct polyfill for these features depend on your environment. For many users, you can configure your [Browserlist](https://github.com/browserslist/browserslist) settings. For others, you may need to import polyfills like [`core-js`](https://github.com/zloirock/core-js) directly.
0 commit comments