Statements (21)
Predicate | Object |
---|---|
gptkbp:instanceOf |
React API function
|
gptkbp:allows |
function that returns a dynamic import
|
gptkbp:alternativeTo |
Loadable Components
React Loadable |
gptkbp:cannotBeUsedWith |
non-default exports
|
gptkbp:category |
React Component API
|
gptkbp:definedIn |
react
|
gptkbp:documentation |
https://react.dev/reference/react/lazy
|
gptkbp:example |
const OtherComponent = React.lazy(() => import('./OtherComponent'));
|
https://www.w3.org/2000/01/rdf-schema#label |
React.lazy
|
gptkbp:introducedIn |
React 16.6
|
gptkbp:limitation |
must be rendered inside a Suspense component
only supports default exports |
gptkbp:relatedTo |
React.Suspense
dynamic import |
gptkbp:requires |
React.Suspense
|
gptkbp:result |
React component
|
gptkbp:usedFor |
code splitting
lazy loading components |
gptkbp:bfsParent |
gptkb:React_Suspense
|
gptkbp:bfsLayer |
7
|