Published On Mar 20, 2024
Learn all about useEffect() & React in-depth: https://acad.link/reactjs
đĽď¸ Official Website & Courses
https://academind.com/courses/
đŹ Academind Community
https://academind.com/community
đ Social Media
  / maxedapps Â
  / academind_real Â
  / academind_real Â
  / academindchannel Â
  / maximilian-schwarzmueller Â
  / manuel-lorenz-808b5185 Â
  / academind-gmbh Â
  / academind-pro Â
  / academind_real Â
00:00:00 useEffect() is often used incorrectly!
00:01:58 useEffect() basics
00:03:16 Setting dependencies correctly
00:08:27 Avoid infinite loops
00:09:56 Introduction to the problem of using useEffect() unnecessarily
00:10:20 Example 1: Use derived state instead
00:12:49 Example 2: Reset state with keys instead
00:17:15 Example 3: Donât wrap synchronous APIs with useEffect()
00:18:32 Sometimes you DO need useEffect()
00:19:32 Consider replacing direct useEffect() usage with specialized libraries