【React対応】invariant.js:42 Uncaught Error: React.Children.only expected to receive a single React element child

invariant.js:42 Uncaught Error: React.Children.only expected to receive a single React element child

これが出たら、console.log上の

invariant.js:42 Uncaught Error: React.Children.only expected to receive a single React element child

invariant.js:42 Uncaught Error: React.Children.only expected to receive a single React element child


ここを見て、
ブレイクポイントで何が返っているか見てください。
invariant.js:42 Uncaught Error: React.Children.only expected to receive a single React element child

invariant.js:42 Uncaught Error: React.Children.only expected to receive a single React element child

reactコンポーネントを返すことを期待しています。
該当箇所にとりあえずdivだけ返してエラーになるか確認して見てください

(Visited 1 times, 1 visits today)