mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 12:43:05 +00:00
Remove dynamic import proposal text (#2564)
Dynamic imports have reached stage 4 and are now part of ECMAScript.
This commit is contained in:
committed by
Alexey Pyltsyn
parent
3794c8a505
commit
05206d70c9
@@ -94,13 +94,6 @@ import("./math").then(math => {
|
||||
});
|
||||
```
|
||||
|
||||
> Note:
|
||||
>
|
||||
> The dynamic `import()` syntax is a ECMAScript (JavaScript)
|
||||
> [proposal](https://github.com/tc39/proposal-dynamic-import) not currently
|
||||
> part of the language standard. It is expected to be accepted in the
|
||||
> near future.
|
||||
|
||||
When Webpack comes across this syntax, it automatically starts code-splitting
|
||||
your app. If you're using Create React App, this is already configured for you
|
||||
and you can [start using it](https://facebook.github.io/create-react-app/docs/code-splitting) immediately. It's also supported
|
||||
|
||||
Reference in New Issue
Block a user