• Lazy component wrapper

    You should use this instead of React.lazy to supports initial and meta data methods in components

    import {lazy} from '@rambler-tech/react-toolkit/client'

    const MainPage = lazy(() => import('./pages/main'))
    const AboutPage = lazy(() => import('./pages/about'))

    Parameters

    Returns LazyPageComponent

Generated using TypeDoc