News for hackers. Stuff that matters.

jfry

Re:React: The Perils of Rehydration on Friday December 03, 2021 @03:04PM (#29434611)
I think you’re using useEffect without an actual reason to use useEffect.

I’ve worked on large react projects for 4 years and I’ve only had to use useLayoutEffect once.

Sounds to me like you need to learn how to use React as a library and not as the only solution your app uses. Guess what: you can absolutely write plain JS (or Jquery etc) alongside your React components.