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
Parameter | Description |
---|---|
T | the type that should match the MoleculeScope and the value provided |
Parameters
Parameter | Type |
---|---|
props | ProviderProps < T > |
Returns
ReturnType
< React.FC
>