Skip to content

Commit

Permalink
Docs(React 18): remove unnecessary React import (#31900)
Browse files Browse the repository at this point in the history
In the `Server Components APIs (Alpha)` code sample, importing `React` is unnecessary. People may think that having `react`'s default export imported is needed to use `Suspense`
  • Loading branch information
leoortizz authored Nov 29, 2021
1 parent efd5d03 commit 0202bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced-features/react-18.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ You can then import other server or client components from any server component.
```jsx
// pages/home.server.js

import React, { Suspense } from 'react'
import { Suspense } from 'react'

import Profile from '../components/profile.server'
import Content from '../components/content.client'
Expand Down

0 comments on commit 0202bb0

Please sign in to comment.