I would have thought that useEffect\'s first function gets called before the first render, but when I call the method below, my console.log just before the return method cal
If you’re familiar with React class lifecycle methods, you can think of useEffect Hook as componentDidMount, componentDidUpdate, and componentWillUnmount combined.
So yes, it runs after the first render and each subsequent render.