首页 > 其他分享 >React Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.

React Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.

时间:2022-12-05 15:39:45浏览次数:44  
标签:... cannot appear validateDOMNesting Warning descendant


报错信息

umi.js:68474 Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.

React Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>._报错信息


其实不难看出是它提示 你应该在p标签中写一个select这里造成错误的原因就是

p标签内只能包裹内联元素, 不能包裹块级元素.

React Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>._前端_02


写了一堆拉胯代码???

告辞!!!!


标签:...,cannot,appear,validateDOMNesting,Warning,descendant
From: https://blog.51cto.com/u_15897447/5912411

相关文章