Browse Source

Fix syntax error in 16.6 blog post (#1288)

main
Jamie 6 years ago
committed by Dan Abramov
parent
commit
8b5d710fa1
  1. 6
      content/blog/2018-10-23-react-v-16-6.md

6
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'; import React, {lazy, Suspense} from 'react';
const OtherComponent = lazy(() => import('./OtherComponent')); const OtherComponent = lazy(() => import('./OtherComponent'));
function MyComponent() ( function MyComponent() {
return (
<Suspense fallback={<div>Loading...</div>}> <Suspense fallback={<div>Loading...</div>}>
<OtherComponent /> <OtherComponent />
</Suspense> </Suspense>
); );
}
``` ```
The Suspense component will also allow library authors to start building data fetching with Suspense support in the future. The Suspense component will also allow library authors to start building data fetching with Suspense support in the future.

Loading…
Cancel
Save