1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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 Iterabl~

1
Posted at

はじめに

  • ダミーデータを配列で作ってレンダリングしたかった
  • エラーメッセージ全文は以下
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 にして解決

終わりに

  • この辺調べてまとめたい
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?