Better HN
topnewbestaskshowjobs
Log inSign up

jfry

1 karma · joined Dec 3, 2021 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

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.