cannot appear as a descendant of

前端 未结 11 503
执念已碎
执念已碎 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:15

    I got this error when using Chakra UI in React when doing inline styling for some text. The correct way to do the inline styling was using the span element, as others also said for other styling frameworks. The correct code:

    
        Bold text
        normal inline text
    
    

提交回复
热议问题