Accepted answer
const Countdown = () => {
    return (
                <Timer taskNumber={1} />
                <ClickScore taskNumber={1} numberOfAnswers={3} />
                <FailScreen taskNumber={1}/>


 const Timer = (clickscore) => {
   // your logic here

   // as an example lets pass the function to button click we will pass it the value 1 when clicked
// this will run the function in the Countdown component
    return <button onClick={() => clickscore(1)>Click Me</button>

   // Now once that has been clicked, all components will display 1 wherever the score prop is being rendered inside of them.

Related Query

More Query from same tag