cannot appear as a descendant of

前端 未结 11 731
执念已碎
执念已碎 2021-01-30 04:36

I\'m seeing this. It\'s not a mystery what it is complaining about:

Warning: validateDOMnesting(...): 
cannot appear as a descendant of

. See

11条回答
  •  忘掉有多难
    2021-01-30 05:25

    Your component might be rendered inside another component (such as a ... ). Therefore, it will load your component inside a

    ..

    which is not allowed.

    Fix: Remove ... because this is only used for plain text inside a

    ...

    or any other text element such as headings.

提交回复
热议问题