SpinTheMic
Pro

Interview practice question

Virtualising a list with variable row heights

Frontend Engineering · React · Experienced

You need to render a chat history with thousands of messages of varying heights, scrolling smoothly. How would you build it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Virtualisation library supporting dynamic measurement.
  • Estimate sizes, measure rendered rows.
  • Reverse scrolling/anchoring at bottom.
  • Preserve scroll position when prepending.
  • Accessibility considerations.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics