Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.12 KB

entrypoint-container.md

File metadata and controls

38 lines (29 loc) · 1.12 KB
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
entrypoint
container
root

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

EntryPointContainer

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