This hook is used to create a state that can be controlled by the parent. If not the state is handled internally. We start to have this redundant use case across Cunningham, so creating a dedicated hook reduces the components verbosity and complexity.
74 B
74 B
@openfun/cunningham-react
| @openfun/cunningham-react |
|---|
| minor |
add useControllableState hook