79370501

Date: 2025-01-20 07:05:22
Score: 1
Natty:
Report link
enter code herein Game component 
const {stage, setStage } = useGame()

and pass setStage as prop to <Start setStage={setStage}/>

in Start component
const {setStage} = props
and in handleClick use this 

 const handleClick = () => {
        setStage(STAGE.PLAYING);
    };

it working and checked.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rohit kesharwani