Skip to content

Profectus / game/layers / RegisterNodeInjectionKey

Variable: RegisterNodeInjectionKey ​

const RegisterNodeInjectionKey: InjectionKey<(id, element) => void>

An injection key that a Context component will use to provide a function that registers a FeatureNode with the given id and HTML element.

Defined in ​

profectus/src/game/layers.tsx:34