1
私はReactの初心者です。配列にオブジェクトを追加したいと思います。ここで React:オブジェクトを配列に追加する
は私のコードです:そして、私のコンポーネントで:
Encountered two children with the same key,
[オブジェクトのオブジェクト] . Child keys must be unique; when two children share a key, only the first child will be used.
:
<ul>{this.props.chat.messages.map((message) =>{ return <li>{message.text}</Link></li> })
}
そして、私はエラーを取得します
ありがとうございます。