Skip to content

📄 Note about Promises for React.lazy #3944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SiarheiBobryk
Copy link
Contributor

According to the note section of React.lazy

Using React.lazy with dynamic import requires Promises to be available in the JS environment. This requires a polyfill on IE11 and below.

From my perspective, it is worth noting here about polyfilling Promises as well as import it in the example.

According to the note section of
[`React.lazy`](https://reactjs.org/docs/react-api.html#reactlazy)

> Using `React.lazy` with dynamic import requires Promises to be
available in the JS environment. This requires a polyfill on IE11 and
below.

From my perspective, it is worth noting here about polyfilling Promises
as well as import it in the example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants