diff --git a/src/App.js b/src/App.js index d6fa0b3..10bd381 100644 --- a/src/App.js +++ b/src/App.js @@ -1,8 +1,11 @@ import './App.css'; +import { useState } from 'react'; + +function Square() { + const [value, setValue] = useState(null); -function Square({ value }) { function handleClick() { - console.log('clicked!'); + setValue('X') } return ( @@ -19,19 +22,19 @@ function App() { return ( <>
- - - + + +
- - - + + +
- - - + + +
);