React Hooks[useEffect()] How to avoid infinite loops
* 관련 기술 스택이 없습니다
• React Hooks allows function components to have a state.
• The useState() method is used to declare the initial state.
• The useEffect() method deals with all lifecycle methods, but can cause infinite loops if not used correctly.
• Adding an empty array as an argument to useEffect() can prevent infinite loops.
북마크
공유하기
신고하기