はじめに
- ダミーデータを配列で作ってレンダリングしたかった
- エラーメッセージ全文は以下
Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it.
You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering.
You can also use an Iterable that can iterate multiple times over the same items.
問題
- エラーで要素がレンダリングされない
解決
- ダミーデータ作成を
Array(10).keys().mapとしてしまっていたところを、[...Array(10).keys()].mapにして解決
終わりに
- この辺調べてまとめたい
