11 lines
242 B
TypeScript
11 lines
242 B
TypeScript
|
import { lazy } from 'react'
|
||
|
|
||
|
const LazySuperShared = lazy(async () => {
|
||
|
const module = await import('./SuperShared')
|
||
|
return { default: module.SuperShared }
|
||
|
})
|
||
|
|
||
|
export function LazyShared() {
|
||
|
return <LazySuperShared from="dynamic" />
|
||
|
}
|