basic interqctivity

This commit is contained in:
djmil 2023-07-31 14:05:46 +02:00
parent 9e0d569eaf
commit 8a35feef7f

View File

@ -1,7 +1,18 @@
import './App.css'; import './App.css';
function Square({ value }) { function Square({ value }) {
return <button className="square">{value}</button>; function handleClick() {
console.log('clicked!');
}
return (
<button
className="square"
onClick={handleClick}
>
{value}
</button>
);
} }
function App() { function App() {