
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-touch-component
Advanced tools
借鉴zepto touch封装的React Component
onTap事件兼容PC使用
Base on zepto touch lib.
onTap event also works with PC as well.
$ npm install react-touch-component --save
React 版本
import Touch from 'react-touch-component';
export default class Demo extends Component {
constructor(props, context) {
super(props, context);
this.state = {};
this.handleTap = this.handleTap.bind(this);
}
handleTap() {
console.log('tap!');
}
render() {
<Touch onTap={this.handleTap}>
<button>Tap me</button>
</Touch>
}
}
Preact版本
import Touch from 'react-touch-component/lib/pindex';
v1.1.4 (2017/12/27) 完善Node环境兼容v1.1.3 (2017/11/11) 完善Node环境兼容v1.1.1 (2017/6/12) 兼容React v15.5后的版本v1.1.0 (2017/2/28) 新增preact版本v1.0.1 (2017/2/22) 兼容Node环境,防止脚本报错v1.0.0 (2017/2/8) 初版FAQs
react-touch-component
We found that react-touch-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.