#How to read console messages?

10 messages · Page 1 of 1 (latest)

pearl locust
#

If you are mapping over an array in your render function within your highlight component, you should add a key prop e.g. <div>{anArray.map((el, key) => <div key={key}>{el}</div>)}</div>

#

note that indexes are not always goodenough as keys so might be more like<div>{anArray.map((el) => <div key={el.key}>{el.message}</div>)}</div>

#

And what's the source of that Container?

#

Does it also give the same issue if you wrap Title and Text in a fragment?

bleak forge
pearl locust
#

well unless that you are generating those highlight boxes from a loop somewhere that you haven't shown, then I have no idea 😄

bleak forge
#

Nope, no loop anywhere.
That's why I was asking if I can read more into that console message

pearl locust
#

you are saying that there are multiple highlight components tho, so maybe it's related to that

#

well, clearly there must be a list somewhere 😄