Skip to content

Commit

Permalink
docs(website): update suspense.mdx (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
______________________________       ____________ ___________________ _________________________________________                     authored and gregberge committed Jan 31, 2019
1 parent fdfe0cc commit cfab31f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/src/pages/docs/suspense.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ order: 30
`@loadable/component` exposes a `lazy` method that acts similarly as `React.lazy` one.

```js
import React, { Suspense } from 'react'
import { lazy } from '@loadable/component'

const OtherComponent = lazy(() => import('./OtherComponent'))
Expand Down

0 comments on commit cfab31f

Please sign in to comment.