Skip to content
Snippets Groups Projects
Verified Commit 76fec585 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: unique key index

parent 564a9967
No related branches found
No related tags found
1 merge request!9Version 0.4.0 🍾
......@@ -14,7 +14,11 @@ export const KeyboardChip8: FC<KeyboardChip8Props> = ({
const classes = () => ["keyboard", "keyboard-chip8", ...style].join(" ");
const renderKey = (key: string) => {
return (
<span className="key" onKeyDown={() => onKeyDown && onKeyDown(key)}>
<span
className="key"
key={key}
onKeyDown={() => onKeyDown && onKeyDown(key)}
>
{key}
</span>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment