umi4分包怎么做的 #8254
yaodong5063
started this conversation in
Ideas
umi4分包怎么做的
#8254
Replies: 1 comment 1 reply
-
import { lazy, Suspense } from 'react'
const Component = lazy(() => import('./Component'))
const Page = () => {
return (
<Suspense fallback={<div>loading...</div>}>
<Component />
</Suspense>
)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
umi4分包怎么做的,有例子吗
Beta Was this translation helpful? Give feedback.
All reactions