Home > @pago/reactive > inject
inject() function
Injects a React.Context into a Reactive Function Component.
Signature:
export declare function inject<T>(context: Context<T>): ReadonlyRef<T>;
Parameters
Parameter | Type | Description |
---|---|---|
context | Context<T> | The React.Context that should be injected into your component. |
Returns:
ReadonlyRef<T>