Unverified Commit cd1a50f1 authored by Alexandre Ferreira's avatar Alexandre Ferreira Committed by GitHub

Update 03-forms-and-mutations.mdx (#55386)

A unique key is required for each item on a list.
parent 67bc262b
......@@ -702,8 +702,8 @@ export function Thread({ messages }: { messages: Message[] }) {
return (
<div>
{optimisticMessages.map((m) => (
<div>{m.message}</div>
{optimisticMessages.map((m, k) => (
<div key={k}>{m.message}</div>
))}
<form
action={async (formData: FormData) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment