mirror of
https://github.com/FranP-code/Hangman-game-with-React.git
synced 2025-10-13 00:42:32 +00:00
Hangman and Current score done
This commit is contained in:
16
src/App.js
16
src/App.js
@@ -1,6 +1,22 @@
|
||||
import React, {useState} from "react";
|
||||
import CurrentScore from "./components/CurrentScore";
|
||||
import Hangman from "./components/Hangman/Hangman";
|
||||
import Header from "./components/Header";
|
||||
|
||||
function App() {
|
||||
|
||||
const [language, setLanguage] = useState('english')
|
||||
const [currentScore, setCurrentScore] = useState(0)
|
||||
|
||||
return (
|
||||
<>
|
||||
<Header language={language}/>
|
||||
|
||||
<div className="app">
|
||||
<Hangman />
|
||||
|
||||
<CurrentScore currentScore={currentScore} />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user