DEV Community

Govardhan Reddy Siddala
Govardhan Reddy Siddala

Posted on

useEffect(() => { if (isInitialRender.current) { isInitialRender.current = false; return; } localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(contacts)); }, [contacts]); can some one explain what is happening

Top comments (0)