[**@twipped/hooks**](../../README.md) • **Docs**

***

# Function: StatedProvider()

> **StatedProvider**\<`T`\>(`props`): `ReactComponentElement`\<`any`, `any`\> \| `Element`

Context provider that creates a managed state for storing a single target selection value.
Use this for custom components that need to have child elements manipulate a stored state.

## Type parameters

• **T**

## Parameters

• **props**: [`StatedProviderProps`](../interfaces/StatedProviderProps.md)\<`T`\>

## Returns

`ReactComponentElement`\<`any`, `any`\> \| `Element`

## Source

[hooks/StatedContext.js:46](https://github.com/Twipped/hooks/blob/main/hooks/StatedContext.js#L46)
