Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 1.13 KB

TypeAlias.QuantumProvider.md

File metadata and controls

79 lines (55 loc) · 1.13 KB

use-quantum-stateDocs


use-quantum-state / QuantumProvider

Type Alias: QuantumProvider()<T>

type QuantumProvider<T>: (props) => JSX.Element;

A special context provider that exposes its emitter via a ref. This allows for emitting events from either direction in the component tree.

Type Parameters

Type Parameter Description

T extends Obj | Obj[]

The state shape.

Parameters

Parameter Type Description

props

PropsWithRef<QuantumProviderProps<T>>

the props for the provider.

Returns

JSX.Element

the provider element.

Defined in

index.tsx:48