DEV Community

Discussion on: Underrated React Hooks you’re missing out on

Collapse
 
jamesthomson profile image
James Thomson

Some great tips, I appreciate the use cases that go with them.

One small correction, I think:

Once, when I was developing a static website for a client, I used the useLayoutEffect Hook and React Router DOM for routing. However, I noticed that the window scroll position of the page didn’t move to the top...

Should say useEffect instead of useLayoutEffect as the solution is to use useLayoutEffect.