Unverified Commit d6f5ebf7 authored by M.K. Safi's avatar M.K. Safi Committed by GitHub

Clarify use of `loading` property (#40488)

I was a little confused by the `loading` property having the value `<header />`. I think that property is meant to show a loading state while the file is being loaded? If my assumption is correct, I think this change makes sense.
parent 2872deef
......@@ -42,7 +42,7 @@ If you are not using React 18, you can use the `loading` attribute in place of t
```jsx
const DynamicHeader = dynamic(() => import('../components/header'), {
loading: () => <header />,
loading: () => <div>Loading...</div>,
})
```
......
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