MCPcopy Create free account
hub / github.com/TanStack/hotkeys / App

Function App

examples/react/useHotkeys/src/index.tsx:16–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const plugins = [hotkeysDevtoolsPlugin()]
15
16function App() {
17 return (
18 <>
19 <HotkeysProvider>
20 <div className="app">
21 <header>
22 <h1>useHotkeys</h1>
23 <p>
24 Register multiple hotkeys in a single hook call. Supports dynamic
25 arrays for variable-length shortcut lists.
26 </p>
27 </header>
28 <BasicMultiHotkeys />
29 <CommonOptionsDemo />
30 <DynamicHotkeysDemo />
31 <RegistrationsViewer />
32 </div>
33 </HotkeysProvider>
34 <TanStackDevtools plugins={plugins} />
35 </>
36 )
37}
38
39// ---------------------------------------------------------------------------
40// Basic: multiple hotkeys registered at once

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected