Dan Luu on Nostr: Naive question for front-end folks: why do React apps in the real world tend to be ...
Naive question for front-end folks: why do React apps in the real world tend to be slow?
I tried doing some React tutorial, and the result was quite fast (in terms of latency & CPU utilization) until the tutorial has you replace "manual" / "low-level" react calls with commonly used libraries, e.g., using TanStack Query instead of useEffect plus a manually instantiated cache.
Is the main issue that libraries tend to be big and slow or is there another major cause of React app slowness?
I tried doing some React tutorial, and the result was quite fast (in terms of latency & CPU utilization) until the tutorial has you replace "manual" / "low-level" react calls with commonly used libraries, e.g., using TanStack Query instead of useEffect plus a manually instantiated cache.
Is the main issue that libraries tend to be big and slow or is there another major cause of React app slowness?