Fix the slow render before you fix the re-render: How to start optimizing your React app renders
#ReactJS #Performancehttps://kentcdodds.com/blog/fix-the-slow-render-before-you-fix-the-re-render …
React has logic to figure out what renders are unneccesary so it can skip them? News to me... Also, I disagree that memo can't speed an application up. Skipping renders is its whole reason for existence.
-
-
The problem never came alone - there are fast first renders and fast second renders. They are important by different reasons and works differently - first rely on simplicity - second on memoization, cost of comparing props of present and past, and VDOM, and only they need all it!
-
Literally - is there any other way to make your render faster, than to use: - simple data structures - as less DIVs as possible - as simple(thus fast) as possible - and not forget about browser part, I mean all than CSS complexity.
- 1 more reply
New conversation -
-
-
Cheers
and have a good day!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Then you can _still_ fix the unnecessary re-render if you want.