#5: Change a tutorial, log
Tried to build a currency converter mobile app today by myself first and got stuck on props.
Wrote:
```
const renderItem = (item: Currency) => { ... }
```
and passed renderItem to FlatList assuming FlatList would pass just the Currency item directly
FlatList internally calls renderItem with an object shaped like {item, index, separators}
so, item should be destructured out of it.
the correct approach would be
const renderItem = ({ item }: { item: Currency }) => { ... }
Answer this
Free. You’re saved — sign in and it posts. You get read for how you think.
This is Proof — engineers thinking in the open.
You get read for how you actually reason — not a résumé keyword. Free to join.