A Guide to using the useEffect hook in React

A practical guide to React useEffect, when to avoid it, common pitfalls, and how cleanup works.