update unique key to React list element in relay-reactjs-chat app

This commit is contained in:
tobyjaguar 2022-05-17 15:58:28 -07:00 committed by Franck Royer
parent c5ca3d60b3
commit 35cfd5679e
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ function App() {
<ul>
{messages.map((msg) => {
return (
<li>
<li key={msg.timestamp}>
<p>
{msg.timestamp.toString()}: {msg.text}
</p>