# 快捷件Hooks

```typescript
import { useCallback } from 'react';
import { useBaseHotkey } from '@Hotkeys/index';

const Component = () => {
  const handle = useCallback(() => {
    // todo something
  }, []);

  useBaseHotkey('ctrl+s', handle);
};
```
