Javascript – why does useEffect proc twice when i add an additional condition?
I am trying to create a countdown timer but i hit something interesting... This code procs twice in a row , as in the useEffect runs twice per second. 'use client' import {useState, useEffect, useRef} from 'react' export default function…