Skip to content
Bunshi
GitHub

ScopeProvider

ScopeProvider<T>(props): ReturnType< React.FC >

Provides scope for all molecules lower down in the React component tree.

Will continue to provide parent scopes down, and either override a scope value or add a new scope.

Either value or uniqueValue should be passed as props

Type parameters

ParameterDescription
Tthe type that should match the MoleculeScope and the value provided

Parameters

ParameterType
propsProviderProps< T >

Returns

ReturnType< React.FC >

Source

src/react/ScopeProvider.tsx:26