We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (this.props.keyName.indexOf(this.handle.shortcut) < 0) return;
请问这句话是什么作用,感觉不会出现小于0的情况。
The text was updated successfully, but these errors were encountered:
还想问一个问题,为什么不把isKeyDown,handle等写在组件的state上
Sorry, something went wrong.
@weidapao
第一个问题有可能出现的。
第二个问题,state 有延迟,使用 state 需要维护一个 componentWillReceiveProps 生命周期函数,个人觉得这个不需要数据绑定功能,所以没有使用 state
state
componentWillReceiveProps
感谢回答,还有一点,handle的key和shortcut属性有啥区别
No branches or pull requests
请问这句话是什么作用,感觉不会出现小于0的情况。
The text was updated successfully, but these errors were encountered: