reactjs - 如何在 React 中抑制 "The tag <some-tag> is unrecognized in this browser"警告?

标签 reactjs warnings

我在 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/

相关文章:

css - 如何在每次 react 组件重新渲染时触发 CSS 动画

javascript - 使用具有功能组件的 Prop 更新组件的状态

c# - 如何抑制 "possible unintended reference comparison"警告?

c - 优化禁止插入地址大小覆盖前缀

android - 该项目引用 RTL 属性,但未明确启用或禁用 RTL 支持

javascript - 使用reactjs时如何在浏览器中输出eslint错误

javascript - Next Js - Firebase 部署问题

node.js - 找不到模块 : Error: Cannot resolve module 'react-addons-test-utils'

php - "Notice: Undefined variable"、 "Notice: Undefined index"、 "Warning: Undefined array key"和 "Notice: Undefined offset"使用 PHP

java - Java 中未经检查的强制转换警告