You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// - Avoid using useEffect "in cascade". If you only use "useEffect" to set a value to a local state and nobody else uses the setState, then you probably should consider "useMemo" instead
33
+
// - Use "useMemo" for heavy computation or when you have a lot of re-rendering
34
+
29
35
constaddEmptyTodo=()=>setTodoList([createTodo('Relax! Edition will come...',false), ...todos]);
0 commit comments