()
| 14 | const plugins = [hotkeysDevtoolsPlugin()] |
| 15 | |
| 16 | function 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 |
nothing calls this directly
no outgoing calls
no test coverage detected