Correctly works! (maybe)
- [Experimental] Accept ref from external
// Support both ref styles // Support but not recommended const ref = useRef<HTMLDivElement>(null); usetMicetrap({ /* bindings */ }, { /* options */ }, ref); // ^^^ external ref in 3rd argument // Recommended const ref = useMicetrap({ /* bindings */ }, { /* options */ });
- Incorrect (duplicate) event handling by all key events
- Fix
micetrap/react
can't be import - Fix server sider warning by useLayoutEffect
- Initial release