Skip to content

Commit

Permalink
Clarify use of loading property (#40488)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
msafi committed Sep 12, 2022
1 parent 2872dee commit d6f5ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced-features/dynamic-import.md
Expand Up @@ -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>,
})
```

Expand Down

0 comments on commit d6f5ebf

Please sign in to comment.