I am more or less doing this in a functional component:
const [timer, setTimer] = useState(null); const startTimer = ()=>{ setTimer(setTimeout(()=>