diff --git a/pages/docs/react/latest/arrays-and-keys.mdx b/pages/docs/react/latest/arrays-and-keys.mdx index f3bc310a2..00288f8dd 100644 --- a/pages/docs/react/latest/arrays-and-keys.mdx +++ b/pages/docs/react/latest/arrays-and-keys.mdx @@ -101,21 +101,24 @@ In case you ever want to render a `list` of items, you can do something like thi ```res type todo = {id: string, text: string} -let todoList = list{ - {id: "todo1", text: "Todo 1"}, - {id: "todo2", text: "Todo 2"} -} -let items = - todoList - ->Belt.List.toArray - ->Belt.List.map((todo) => { -