refactor(examples): switch examples from cra to nextjs
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import { useKeyPress } from '@react-flow/core';
|
||||
|
||||
const UseKeyPressComponent = () => {
|
||||
const metaPressed = useKeyPress(['Meta']);
|
||||
|
||||
console.log({ metaPressed });
|
||||
|
||||
return <div />;
|
||||
};
|
||||
|
||||
export default UseKeyPressComponent;
|
||||
Reference in New Issue
Block a user