When to use ES6 class based React components vs. functional ES6 React components?
New Answer: Much of the below was true, until the introduction of React Hooks. componentDidUpdate can be replicated with useEffect(fn), where fn is the function to run upon rerendering. componentDidMount methods can be replicated with useEffect(fn, []), where fn is the function to run upon rerendering, and [] is an array of objects for which … Read more