Skip to content

Commit 23e6a68

Browse files
committed
[18] Update React.lazy docs (#4483)
1 parent 4e16cad commit 23e6a68

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

content/docs/code-splitting.md

-4
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ When using [Babel](https://babeljs.io/), you'll need to make sure that Babel can
8181

8282
## `React.lazy` {#reactlazy}
8383

84-
> Note:
85-
>
86-
> `React.lazy` and Suspense are not yet available for server-side rendering. If you want to do code-splitting in a server rendered app, we recommend [Loadable Components](https://github.com/gregberge/loadable-components). It has a nice [guide for bundle splitting with server-side rendering](https://loadable-components.com/docs/server-side-rendering/).
87-
8884
The `React.lazy` function lets you render a dynamic import as a regular component.
8985

9086
**Before:**

content/docs/reference-react.md

-8
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,6 @@ const SomeComponent = React.lazy(() => import('./SomeComponent'));
342342

343343
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.
344344
345-
> **Note**
346-
>
347-
> Using `React.lazy`with dynamic import requires Promises to be available in the JS environment. This requires a polyfill on IE11 and below.
348-
349345
### `React.Suspense` {#reactsuspense}
350346
351347
`React.Suspense` lets 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>`:
@@ -370,10 +366,6 @@ It is documented in our [code splitting guide](/docs/code-splitting.html#reactla
370366

371367
While this is not supported today, in the future we plan to let `Suspense` handle more scenarios such as data fetching. You can read about this in [our roadmap](/blog/2018/11/27/react-16-roadmap.html).
372368

373-
>Note:
374-
>
375-
>`React.lazy()` and `<React.Suspense>` are not yet supported by `ReactDOMServer`. This is a known limitation that will be resolved in the future.
376-
377369
### `React.startTransition` {#starttransition}
378370

379371
```js

0 commit comments

Comments
 (0)