[英]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.