Re:If Not React, Then What?
by boredtofears on Saturday November 30, 2024 @07:05PM
(#42285014)
How do you fetch and persist server side data without useEffect? (Assuming vanilla react)
[ Parent
| on HN ]
That’s probably the main real-world use case for useEffect. Dedicated third-party libraries like React Query obviously use useEffect under the hood as well
Re:If Not React, Then What?
by boredtofears on Sunday December 01, 2024 @09:59AM
(#42288750)
Yeah that's what I thought -- all the React codebases that I've worked in are riddled with `useEffect` for this reason primarily.