npm install @loadable/component # or use yarn yarn add @loadable/component @loadable/babel-plugin is required for Server Side Rendering and automatic chunk names generation. @loadable/server and @loadable/webpack-plugin are only required for Server Side Rendering. import loadable from '@loadable/component' import pMinDelay from 'p-min-delay' // Wait a minimum of 200ms before loading home. export const OtherComponent = loadable(() => pMinDelay(import('./OtherComponent'), 200) ) import loadable from '@loadable/component' const OtherComponent = loadable(() => import('./OtherComponent')) function MyComponent() { return (
) }
  • LinkedIn Social Icône
  • Facebook

©2021 Groupe FB2B inc. - Tous droits réservés

Créé par FB2B Solutions d'affaires une division de Groupe FB2B inc.