简体   繁体   English

ReactJS-警告: <label>标签</label>上的未知道具“ on​​TouchTap” <label>。</label> <label>从元素中移除该道具</label>

[英]ReactJS - Warning: Unknown prop `onTouchTap` on <label> tag. Remove this prop from the element

I took the example from http://redux-form.com/6.6.3/examples/material-ui/ and ran it on my localhost. 我从http://redux-form.com/6.6.3/examples/material-ui/中获取了示例,并在本地主机上运行了该示例。 I received the error: 我收到错误:

Warning: Unknown prop onTouchTap on tag. 警告:标签上的未知道具onTouchTap Remove this prop from the element 从元素中移除该道具

The error comes from material-ui plugin. 错误来自material-ui插件。 Anyone already solved it yet ? 有人解决了吗?

Add these lines on your app 在您的应用上添加这些行

import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();

before ReactDOM.render(); ReactDOM.render();之前ReactDOM.render();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ReactJS - 标签上的未知道具`activeClassName` <a>。</a> <a>从元素中移除这个道具</a> - ReactJS - Unknown prop `activeClassName` on <a> tag. Remove this prop from the element 警告:&lt;&gt; 标签上的未知道具。 从元素中移除这个道具 - Warning: Unknown prop on <> tag. Remove this prop from the element 如何修复“警告:未知的道具`ng-app`在 <body> 标签。 从元素中删除该道具”错误? - How to fix “Warning: Unknown prop `ng-app` on <body> tag. Remove this prop from the element” error? react params-警告: <a>标签</a>上的未知prop`params` <a>。</a> <a>从元素中移除该道具</a> - react params - Warning: Unknown prop `params` on <a> tag. Remove this prop from the element 修复 React 警告:&lt;&gt; 标签上的未知道具。 从元素中移除这个道具 - Fix React Warning: Unknown prop on <> tag. Remove this prop from the element 如何避免标签上出现错误“未知道具&lt;&gt;。 从元素中删除该道具”? - How to avoid the error “Unknown prop <> on tag. Remove this prop from the element”? React-未知的道具`page_id` <div> 标签。 从元素中移除该道具 - React - Unknown prop `page_id` on <div> tag. Remove this prop from the element 为什么React会警告“ Unknown prop`p`” <p> 标签。 从元素中删除该道具。”如果没有这样的道具? - Why does React warn “Unknown prop `p` on <p> tag. Remove this prop from the element.” when there's no such prop? Reactjs将函数props传递给component&#39;addrow` on的无效值 <div> 标签。 从元素中删除它 - Reactjs pass function props to component Invalid value for prop `addrow` on <div> tag. Either remove it from the element 警告:未知道具`input`,`meta`<input> 标签。 从元素中删除这些道具 - Warning: Unknown props `input`, `meta` on <input> tag. Remove these props from the element
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM