Table of clues
This commit is contained in:
15
client/src/App.jsx
Normal file
15
client/src/App.jsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useGamestate } from './hooks/gamestate';
|
||||
import Login from './components/Login'
|
||||
import GameBoard from './components/GameBoard';
|
||||
|
||||
function App() {
|
||||
const { level } = useGamestate();
|
||||
if (level === 'login') {
|
||||
return <Login/>
|
||||
}
|
||||
if (level === 'gameboard') {
|
||||
return <GameBoard />
|
||||
}
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user