MCPcopy Index your code
hub / github.com/JedWatson/react-select / createOption

Function createOption

docs/examples/CreatableInputOnly.tsx:14–17  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

12}
13
14const createOption = (label: string) => ({
15 label,
16 value: label,
17});
18
19export default () => {
20 const [inputValue, setInputValue] = React.useState('');

Callers 1

handleKeyDownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…