Ossido
Loading...
This function lets you dynamically import a component. It uses React.lazy() with Suspense under the hood.
function dynamic<T = object>(importFn: Loader<T>, opts?: DynamicOptions): ComponentType<T>;
import { dynamic } from '@ossido-labs/ossido'; const Chart = dynamic(() => import('./Chart'), { ssr: false });