26
loading...
This website collects cookies to deliver better user experience
To make sure that my optimizations are actually working I've brought my super old laptop to work, which I've considered the most reliable benchmark of improvement
React.memo
- React will then render child only when props change. However, make sure that you fully understand how it works in the docs, and then check that it really helped.React.memo
. Because the row is relying mostly on fetched data, we can save quite a lot of unnecessary re-rendering.react-list
.react-list
is able to solve this by only asking you to estimate the size of rows and then when it actually renders the element, it updates the size automatically. This can lead to your scrollbar jumping (as a height of the container is changing while you are scrolling in it), but if your estimation is somehow decent, it is pretty minor issue.grid
, which allowed us create complex layouts using only few html elements.onmouseover
, which improved situation quite significantly.tab
, as buttons were not actually present. I've solved this by always rendering first and last button (but hiding them with css) and other buttons would render when focus is within the row itself or when mouseover - this way user won't recognize the difference.PS: Check Tolgee.io and give us github stars