gpt4 book ai didi

meteor - react-bootstrap:关于未知 Prop 的警告

转载 作者:行者123 更新时间:2023-12-04 09:30:33 24 4
gpt4 key购买 nike

我不知道为什么,但我注意到浏览器控制台中有很多关于未知 Prop 的警告。以下是一些警告:

"Warning: Unknown prop `navbar` on <ul> tag. Remove this prop from the element. For details, see 
in ul (created by Nav)
in Nav (created by NavbarWrapper)
in div (created by NavbarWrapper)"

"Warning: Unknown prop `divider` on <a> tag. Remove this prop from the element. For details, see
in a (created by SafeAnchor)
in SafeAnchor (created by MenuItem)
in li (created by MenuItem)
in MenuItem (created by NavbarWrapper)
in ul (created by DropdownMenu)
in DropdownMenu (created by Dropdown)
in li (created by Dropdown)
in Dropdown (created by Uncontrolled(Dropdown))
in Uncontrolled(Dropdown) (created by NavDropdown)
in NavDropdown (created by NavbarWrapper)
in ul (created by Nav)
in Nav (created by NavbarWrapper)"

NavbarWrapper 是我编写的一个 React 组件,它呈现一个 react-bootstrap 导航栏。

我直到今天(2016 年 7 月 4 日)才开始注意到这些警告。但是,导航栏按预期工作。

我使用的是meteor 1.3.4.1,react 15.1.0,react-bootstrap 0.29.5

如果我做错了什么,请有人告诉我吗?

最佳答案

不是真正的答案(新用户,还不能发表评论)但似乎 react recently upgraded to version 0.15.2部分更改是发出警告,将未知元素(或 Prop )传递给 dom。

这不会破坏您的用户界面,但会在您的浏览器控制台中包含烦人的警告日志。

其他相关链接:https://github.com/react-bootstrap/react-bootstrap/issues/1970

关于meteor - react-bootstrap:关于未知 Prop 的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38175958/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com