What is Nostr?
Dan Luu /
npub1pm9…88nl
2024-05-01 22:58:34

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?
Author Public Key
npub1pm93exm0eyfep2635k3epqh5f39tuzse44nuvwmsn5t4a0erureqnl88nl