useSelectContext
Returns the select store from the nearest select container.
Code examples
function Select() {
if (!store) {
throw new Error("Select must be wrapped in SelectProvider");
}
// Use the store...
}
Follow updates
Join 1,000+ subscribers and receive monthly updates with the latest improvements on API Reference.