Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const DownshiftContext = React.createContext();
export default () => (
onChange={selection => alert(`You selected ${selection.value}`)}
itemToString={item => (item ? item.value : "")}
{downshift => (
<DownshiftContext.Provider value={downshift}>
<h2>Basic Example</h2>
<Basic {...downshift.getRootProps({ refKey: "innerRef" })} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.