MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onSelectionChange

Function onSelectionChange

packages/dev/s2-docs/src/BundlerSwitcher.tsx:60–63  ·  view source on GitHub ↗
(key: Key)

Source from the content-addressed store, hash-verified

58 let active = items.find(it => it.id === bundler) ?? items[0];
59
60 let onSelectionChange = (key: Key) => {
61 let value = String(key) as SwitcherKey;
62 setBundler(value);
63 };
64
65 return (
66 <div className={container} data-example-switcher>

Callers

nothing calls this directly

Calls 1

StringFunction · 0.85

Tested by

no test coverage detected