我在 React 中使用带有自定义标签名称的元素,并得到了这些错误的墙。有一个关于该主题 ( https://github.com/hyperfuse/react-anime/issues/33 ) 的 GitHub 问题,其中有人指出:
This is a new warning message in React 16. Has nothing to do with anime/react-anime and this warning can safely be ignored.
很高兴它可以被安全地忽略,但是当我的代码在控制台中填充无用的错误消息时,它仍然无法通过审查。
如何抑制这些警告?
最佳答案
我发现了此问题的潜在解决方案 - 如果您正在使用插件(并且可能在其他情况下),您可以使用 is
属性。
找到here使用 X3d 时 - 只需写 <scene is="x3d" .../>
作品
关于reactjs - 如何在 React 中抑制 "The tag <some-tag> is unrecognized in this browser"警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48751919/