I understand that the solution to this issue is to add a key={}
to your element.
However, in my case, I have an array of log strings that can be the same, and I am creating a Semantic UI List like this:
<List items={logItems}></List>
How do I avoid the flattenChildren()
problem?
You have to find a way to uniquely identify a resource
For instance if you want to render a list of logs maybe you can use as key the date that that log was generated or in the worst case if you don't have an id of that log, the date that log was created, you can use as key the index in that array (The last approach brings some issues when you modify the array in the client)
And to add the key you have to use List.Item alongside your List element for semantic-ui
Some code