From 8b5d710fa10a773b9f593082e4bd67f700aca7c1 Mon Sep 17 00:00:00 2001 From: Jamie Date: Tue, 23 Oct 2018 19:26:26 -0700 Subject: [PATCH] Fix syntax error in 16.6 blog post (#1288) --- content/blog/2018-10-23-react-v-16-6.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/content/blog/2018-10-23-react-v-16-6.md b/content/blog/2018-10-23-react-v-16-6.md index df403af3..f0f1710e 100644 --- a/content/blog/2018-10-23-react-v-16-6.md +++ b/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 import React, {lazy, Suspense} from 'react'; const OtherComponent = lazy(() => import('./OtherComponent')); -function MyComponent() ( - Loading...}> - - -); +function MyComponent() { + return ( + Loading...}> + + + ); +} ``` The Suspense component will also allow library authors to start building data fetching with Suspense support in the future.