Rendering arrays and handling keys in ReScript and React. ... List.toArray ->Belt.Array.map(todo => { <li key={todo.id}> {React.string(todo.text)} </li> } ...
確定! 回上一頁