Skip to content

Commit 8b5d710

Browse files
jamiebuildsgaearon
authored andcommitted
Fix syntax error in 16.6 blog post (#1288)
1 parent d88cd4c commit 8b5d710

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

content/blog/2018-10-23-react-v-16-6.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ You may have seen [Dan's talk about React Suspense at JSConf Iceland](/blog/2018
2525
import React, {lazy, Suspense} from 'react';
2626
const OtherComponent = lazy(() => import('./OtherComponent'));
2727

28-
function MyComponent() (
29-
<Suspense fallback={<div>Loading...</div>}>
30-
<OtherComponent />
31-
</Suspense>
32-
);
28+
function MyComponent() {
29+
return (
30+
<Suspense fallback={<div>Loading...</div>}>
31+
<OtherComponent />
32+
</Suspense>
33+
);
34+
}
3335
```
3436

3537
The Suspense component will also allow library authors to start building data fetching with Suspense support in the future.

0 commit comments

Comments
 (0)