How to use the @jaredpalmer/after.asyncComponent function in @jaredpalmer/after

To help you get started, we’ve selected a few @jaredpalmer/after examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SaraVieira / awesome-talks / src / routes.js View on Github external
import Loading from './Components/Styling/Loading'
import { asyncComponent } from '@jaredpalmer/after'

export default [
  {
    path: '/',
    exact: true,
    component: asyncComponent({
      loader: () => import('./Pages/Home'),
      Placeholder: () => 
    })
  },
  {
    path: '/speakers',
    exact: true,
    component: asyncComponent({
      loader: () => import('./Pages/Speakers'),
      Placeholder: () => 
    })
  },
  {
    path: '/speaker/:speaker',
    exact: true,
    component: asyncComponent({
      loader: () => import('./Pages/Speaker'),
      Placeholder: () => 
    })
  },
  {
    path: '/category/:category',
    exact: true,
    component: asyncComponent({

@jaredpalmer/after

Build isomorphic Javascript applications with ease.

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis

Similar packages