I admire that the React team is focusing on performance
I admire that the React team is focusing on performance. π
But, I find React is usually plenty fast without optimizations.
So:
1. I rarely use performance-oriented features like memo.
2. I find the UX improvement with these new features/patterns is often minimal.
1/3
For many apps:
1. Fetch waterfalls donβt exist.
2. Fetch after render has only a minor perf impact. It only impacts the initial page load, which is a tiny slice of the user experience.
3. Memo, useTransition, etc arenβt necessary. It already renders quickly.
2/3
So, I'm not saying these new React patterns and features aren't useful.
I'm just saying they're not typically necessary in my experience if I declare state as local as possible, and compose my components strategically.
3/3
Got some replies with "framework/library x is faster by default".
Yep. There are faster options than React today.
But my point is:
1. React is typically plenty fast by default.
2. Making it even faster for edge cases is trivial. Often via a one-liner like memo/useMemo.