mirror of https://github.com/waku-org/js-waku.git
update unique key to React list element in relay-reactjs-chat app
This commit is contained in:
parent
c5ca3d60b3
commit
35cfd5679e
|
@ -78,7 +78,7 @@ function App() {
|
|||
<ul>
|
||||
{messages.map((msg) => {
|
||||
return (
|
||||
<li>
|
||||
<li key={msg.timestamp}>
|
||||
<p>
|
||||
{msg.timestamp.toString()}: {msg.text}
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue