UNPKG

@render-props/choices

Version:

A state container which provides an interface for making selections from a group of choices. The `Choices` component itself is a context provider which can be used with the `Choice` and `ChoicesConsumer` components for deep-tree selections. It does not ha

21 lines (16 loc) 325 B
import React from 'react' export default React.createContext({ select: null, deselect: null, toggle: null, setSelections: null, clearSelections: null, isSelected: null, addChoice: null, deleteChoice: null, setChoices: null, clearChoices: null, isChoice: null, selections: null, choices: null })