✨(react) add useControllableState hook
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.
This commit is contained in:
5
.changeset/flat-dogs-wink.md
Normal file
5
.changeset/flat-dogs-wink.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@openfun/cunningham-react": minor
|
||||
---
|
||||
|
||||
add useControllableState hook
|
||||
Reference in New Issue
Block a user