All jobs / Mobile developer / Cross-Platform

Mobile developer interview question · 0–1 years

A React Native list reshuffles items and several rows show the wrong image. What do you look at first?

The strongest answer

The key / identity of each row — if I used the index, recycled views will keep the wrong child state

Why it works

Exactly. Identity is how reuse stays honest. Index keys are a classic RN (and React) miss.

What a good answer covers

Answers that fall short

Who gets asked this

More Cross-Platform questions