在控制台未知的prop中反应js警告 [英] react js warnings in console unknown prop
问题描述
我有一个带有react-toolbox的reactJS应用程序
在控制台中,我收到此错误:
Warning: Unknown prop `raised` on <a> tag. Remove this prop from the element.
任何想法如何解决此警告? 我不想删除标签,是否有解决方法可以通过不删除此标签来解决此问题?
谢谢
更新
<Button icon='save' type="submit" label={<T value='processes.new.save'/>} raised primary/>
我使用了这些东西: http://react-toolbox.com/#/components/按钮
之所以发生这种情况,是因为将凸起的"道具作为道具添加到了<Link>
制造的<a>
中.您可以通过位置的state属性添加其他信息.
检查链接文档 >
I've got a reactJS application with react-toolbox
in console I got this error:
Warning: Unknown prop `raised` on <a> tag. Remove this prop from the element.
Any Idea how I can solve this warning? I don't want to remove the tag, is there workaround to get this worked with not removing this?
thanks
Update
<Button icon='save' type="submit" label={<T value='processes.new.save'/>} raised primary/>
I use this stuff: http://react-toolbox.com/#/components/button
This is happening because the 'raised' prop is being added as a prop to the <a>
that the <Link>
makes. You can include additional information through the state property of the location.
check Link docs
这篇关于在控制台未知的prop中反应js警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!