diff --git a/src/components/BoardSwitcher.jsx b/src/components/BoardSwitcher.jsx index e99793a..a89d7e0 100644 --- a/src/components/BoardSwitcher.jsx +++ b/src/components/BoardSwitcher.jsx @@ -1,4 +1,6 @@ -import React from "react"; + +import React, {useState} from "react"; + function Board(props) { let className = "board"; @@ -10,16 +12,28 @@ function Board(props) { } function BoardSwitcher(props) { + const [numSelected, SetNumSelected] = useState(0); let boards = []; + + const handleClick = (event) =>{ + if(numSelected); } + return (
{boards}
- +
); } diff --git a/src/main.jsx b/src/main.jsx index 782f402..316ad56 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -6,6 +6,6 @@ import "./index.css"; const root = ReactDOM.createRoot(document.getElementById("root")); root.render( - + );