DEV Community

Discussion on: Remove element from DOM in React way

Collapse
chilupa profile image
Pavan Chilukuri Author • Edited on

Sure, If you are familiar with React class life cycle methods, you can think of useEffect Hook as componentDidMount, componentDidUpdate, and componentWillUnmount combined. They don't run in a loop.