Skip to content

Instantly share code, notes, and snippets.

@notgiorgi
Last active July 12, 2017 13:55
Show Gist options
  • Select an option

  • Save notgiorgi/a3ced93a4c83be5dbdb1c73d04cc9a5d to your computer and use it in GitHub Desktop.

Select an option

Save notgiorgi/a3ced93a4c83be5dbdb1c73d04cc9a5d to your computer and use it in GitHub Desktop.
withLazyLoading(
() => import('./features/Post'),
<Loading type="spinner" />
)
// We can name the chunk
withLazyLoading(
() => import(/* webpackChunkName: "Post" */ './features/Post'),
<Loading type="spinner" />
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment