Skip to content

Instantly share code, notes, and snippets.

View bipinstha7's full-sized avatar
🎯
Focusing

Bipin Shrestha bipinstha7

🎯
Focusing
View GitHub Profile
@hartzis
hartzis / EventComponent.js
Last active November 29, 2023 16:38
Touch Event Handling React Component
import React from 'react';
export default class EventComponent extends React.Component {
constructor(props) {
super(props);
this._onTouchStart = this._onTouchStart.bind(this);
this._onTouchMove = this._onTouchMove.bind(this);
this._onTouchEnd = this._onTouchEnd.bind(this);