为了使触摸事件生效,在渲染所有组件之前调用
React.initializeTouchEvents(true)。
为什么老是报这个错。我的工程是基于antd搭建的
0.14版本以后不需要这个了啊..
http://facebook.github.io/react/blog/2015/10/07/react-v0.14.html#breaking-changes
React.initializeTouchEvents is no longer necessary and has been removed completely. Touch events now work automatically.
你react 版本号是?