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.
6 lines
74 B
Markdown
6 lines
74 B
Markdown
---
|
|
"@openfun/cunningham-react": minor
|
|
---
|
|
|
|
add useControllableState hook
|