I was doing my work and I wondered why useEffect detects a change when a useState() variable starts with a default value, and how to prevent that
const [startDate, setStartDate] = useState(0);
useEffect(() => {
console.log(startDate)
}, [startDate])
First rendered of the useEffect with be the value of 0, how to prevent that the useEffect detects the default value?