Hacker Newsnew | past | comments | ask | show | jobs | submit | jfry's commentslogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: