Im new to react and have been using useEffect for the first time. Im getting warning of missing dependecy, but the app works perfectly. How can I solve the warning? Or is it okay to ignore this warning?
useEffect(() => {
setValid(true);
}, []};
Im getting the warning : React Hook useEffect has a missing dependency: 'setValid'.