Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakZh committed Jul 25, 2024
1 parent 6589c5c commit d267ad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';

export const App: React.FC = () => {
const [key, setKey] = useState('');
const [key, setKey] = useState<string>('');

useEffect(() => {
const handleKeyBoardEvent = (event: KeyboardEvent) => {
Expand All @@ -14,7 +14,7 @@ export const App: React.FC = () => {
return () => {
document.removeEventListener('keyup', handleKeyBoardEvent);
};
});
}, []);

return (
<div className="App">
Expand Down

0 comments on commit d267ad8

Please sign in to comment.