const CreateProject = lazy(() => {
return new Promise(resolve => setTimeout(resolve, 2000)).then(
() =>import('../common/CreateProject.js')
)
})
相关文章
- 02-13如何使用React.lazy和Suspense进行组件延迟加载
- 02-13react lazy----延迟加载组件
- 02-13react 异步组件加载lazy与Suspense
- 02-13react-loadable 组件动态加载 打包文件分割
- 02-13react-loadable 实现组件按需加载
- 02-13解决react hook组件卸载数据处于加载中渲染组件状态Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions an
- 02-13实现react路由动态加载的组件
- 02-13react延迟加载
- 02-13react 下拉刷新上拉加载更多通用组件
- 02-13React 移动端 下拉刷新、上拉加载组件 m-pull-to-refresh