Skip to content

Commit 165ae04

Browse files
authored
Add note about Promise polyfill for React.lazy (#1556)
* Add note about Promise polyfill for React.lazy Fixes #1552 * Backticks
1 parent 60dd46d commit 165ae04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/docs/reference-react.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ const SomeComponent = React.lazy(() => import('./SomeComponent'));
310310
311311
Note that rendering `lazy` components requires that there's a `<React.Suspense>` component higher in the rendering tree. This is how you specify a loading indicator.
312312
313+
> **Note**
314+
>
315+
> Using `React.lazy`with dynamic import requires Promises to be available in the JS environment. This requires a polyfill on IE11 and below.
316+
313317
### `React.Suspense`
314318
315319
`React.Suspense` let you specify the loading indicator in case some components in the tree below it are not yet ready to render. Today, lazy loading components is the **only** use case supported by `<React.Suspense>`:

0 commit comments

Comments
 (0)