Back to Relay

EntryPointContainer

website/versioned_docs/version-v20.0.0/api-reference/entrypoint-apis/entrypoint-container.md

20.1.1873 B
Original Source

import DocsRating from '@site/src/core/DocsRating'; import {OssOnly, FbInternalOnly} from 'docusaurus-plugin-internaldocs-fb/internal';

EntryPointContainer

<FbInternalOnly>

For more information, see the Defining EntryPoints and Consuming EntryPoints guides.

</FbInternalOnly>
js
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 to loadEntryPoint or acquired from the useEntryPointLoader hook.
  • props: additional runtime props that will be passed to the Component
<DocsRating />