Returns the radio store from the nearest radio container.

Code examples

function Radio() {
const store = useRadioContext();
if (!store) {
throw new Error("Radio must be wrapped in RadioProvider");
// Use the store...

Follow updates

Join 1,000+ subscribers and receive monthly updates with the latest improvements on API Reference.

Read latest issue

No Spam. Unsubscribe at any time.