React.js で map() を使ってみる - Qiita
const numbers = [1, 2, 3, 4, 5]; const listItems = numbers.map((number) => <li>{number}</li> );
これreturn
で{listItems}
すると、
If you meant to render a collection of children, use an array instead.
Array使えと??
この中国サイト見た。
{}
外したw