React ถ้าใช้ useEffect ควรเขียน Cleanup functions วิธีใช้งานแบบผิด ๆ ที่มือใหม่อาจจะพลาดKongvut Sangkla (Writer)February 19, 2023 · 6 min readTags:reactuseMemouseEffectbest practicesIntroStrictMode problemsuseEffect and deps problemsPrimitive and Non-PrimitiveCleanup function