The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

alamba78 (17) [Avatar] Offline
#1
In the code, we have:

 topics = topics.map((topic, i) => {
  return <Text>{ topic }</Text>
})


Why even have the index variable i in there as we aren't using it? Just a nitpick, nothing wrong really. But, it keeps the code a little bit cleaner by removing it.
287516 (45) [Avatar] Offline
#2
Good point, we should either use index and talk about why, or leave it out entirely! Will update in next release smilie