id | title | slug | description | keywords | |||
---|---|---|---|---|---|---|---|
entrypoint-container |
EntryPointContainer |
/api-reference/entrypoint-container/ |
API reference for EntryPointContainer, a React component used to render the root component of an entrypoint |
|
import DocsRating from '@site/src/core/DocsRating'; import {OssOnly, FbInternalOnly} from 'docusaurus-plugin-internaldocs-fb/internal';
For more information, see the Defining EntryPoints and Consuming EntryPoints guides.
function EntryPointContainer({
entryPointReference,
props,
}: {
+entryPointReference: PreloadedEntryPoint<TEntryPointComponent>,
+props: TRuntimeProps,
}): ReactElement
A React component that renders a preloaded EntryPoint.
entryPointReference
: the value returned from a call toloadEntryPoint
or acquired from theuseEntryPointLoader
hook.props
: additional runtime props that will be passed to theComponent