We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88cd4c commit 8b5d710Copy full SHA for 8b5d710
content/blog/2018-10-23-react-v-16-6.md
@@ -25,11 +25,13 @@ You may have seen [Dan's talk about React Suspense at JSConf Iceland](/blog/2018
25
import React, {lazy, Suspense} from 'react';
26
const OtherComponent = lazy(() => import('./OtherComponent'));
27
28
-function MyComponent() (
29
- <Suspense fallback={<div>Loading...</div>}>
30
- <OtherComponent />
31
- </Suspense>
32
-);
+function MyComponent() {
+ return (
+ <Suspense fallback={<div>Loading...</div>}>
+ <OtherComponent />
+ </Suspense>
33
+ );
34
+}
35
```
36
37
The Suspense component will also allow library authors to start building data fetching with Suspense support in the future.
0 commit comments