react-virtual-list
react-virtual-list copied to clipboard
Best Practices (WIP)
Using this space to gather some best practices before incorporating into the official documentation.
- Set keys on your list items
- mobx devs using observable arrays should call
slice
on their observables before using as theitems
prop on the virtual component. - Use
initialState
for server-side rendering - Override
mapVirtualToProps
if you prefer to use other style rules (instead ofpaddingTop
), such astranslateY
- Be aware of the maximum document/element height for each browser