Unverified Commit 9010e454 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

docs: mark app router dynamic example as client component (#74806)

parent 09e47152
...@@ -127,6 +127,8 @@ export default function Page() { ...@@ -127,6 +127,8 @@ export default function Page() {
### Adding a custom loading component ### Adding a custom loading component
```jsx filename="app/page.js" ```jsx filename="app/page.js"
'use client'
import dynamic from 'next/dynamic' import dynamic from 'next/dynamic'
const WithCustomLoading = dynamic( const WithCustomLoading = dynamic(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment