Function CorpusContext

Ambient corpus scope. A corpus-rendering app wraps its content tree in <CorpusContext value={{ root, entry, toHref }}>; nesting a second provider inside a rendered sub-corpus makes the innermost win, as with LinkSpaceContext.

  • Parameters

    • props: ProviderProps

    Returns ReactNode

Properties

$$typeof: symbol
Consumer: Consumer<CorpusScope>
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

Provider: Provider<CorpusScope>