repository to manage all files for 1_2_oder_3 interaction game for Inf2/2 Interaktionen SoSe23 from Engert, Caliskan and Bachiri
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StartButton.js 494B

123456789101112131415161718192021
  1. import {useState} from "react";
  2. import TeamSizePopUp from "./TeamsizePopUp";
  3. function StartButton() {
  4. const [openPopUp, setOpenPopUp] = useState(false)
  5. function startclicked() {
  6. setOpenPopUp(true);
  7. }
  8. return(
  9. <>
  10. <button className="MyButton" id="StartButton" onClick={startclicked}>
  11. Start Game
  12. </button>
  13. {openPopUp && <TeamSizePopUp closeModal={setOpenPopUp}/>}
  14. </>
  15. )
  16. }
  17. export default StartButton