useRadioContext
Returns the radio store from the nearest radio container.
Code examples
function Radio() {
if (!store) {
throw new Error("Radio must be wrapped in RadioProvider");
}
// Use the store...
}
Returns the radio store from the nearest radio container.
function Radio() {
if (!store) {
throw new Error("Radio must be wrapped in RadioProvider");
}
// Use the store...
}
Join 1,000+ subscribers and receive monthly tips & updates on new Ariakit content.
No spam. Unsubscribe anytime. Read latest issue