React Hooks! - useEffect
Welcome back to the Rithm School series on React hooks. In this blog post, I'll introduce useEffect
, a very useful and potentially confusing new hook in React. useEffect
can be used in place of three lifecycle methods: componentDidMount
, componentDidUpdate
, and componentWillUnmount
. The details of how useEffect
replaces all three methods is what we will be exploring in this blog post.