It's really become a pain seeing this much warning
s regarding DOMNesting
and I couldn't do anything to get rid of 'em all in one place so here is a typical example of this
Warning: validateDOMNesting(...): <table> cannot appear as a descendant of <p>.
table ...
Is there any config or command so they all could vanish all of a sudden?
Best way to remove the warnings is to fix the code and bringing out the table
element from p
element. But anyway You can use this line to hide all console warnings:
console.warn = () => {};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.