API/QubeeProviderProps
QubeeProviderProps
typesrc/types/qubee-provider-props.type.ts
Props of QubeeProvider: either the configuration of an instance the provider creates
and owns, or an instance created elsewhere — never both.
Import
Section titled “Import”import type { QubeeProviderProps } from '@qubeejs/react';Definition
Section titled “Definition”type QubeeProviderProps = (QubeeConfig & { … }) | { … }Members
Section titled “Members”Variant 1
Section titled “Variant 1”Everything in QubeeConfig, plus:
| Member | Type | Description |
|---|---|---|
children |
ReactNode |
The subtree that shares the instance. |
value? |
never |
Not allowed with a configuration: pass one or the other. |
Variant 2
Section titled “Variant 2”| Member | Type | Description |
|---|---|---|
children |
ReactNode |
The subtree that shares the instance. |
value |
Qubee |
An instance created elsewhere, e.g. by createQubee(). |