mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-27 11:30:49 +00:00
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…
x
Reference in New Issue
Block a user