Reactjs – Stopping a timer in React
I made this simple React program. Can someone tell me why the stop button doesn't work? Shouldn't the boolean statement stop it from repeating after I click the stop button? import "./styles.css"; import { useState, useEffect } from "react"; import…