# react-touch-mixin

> Mixin to enable touch interactions in React components.

Latest version **0.1.1** (published 2015-01-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-touch-mixin
pnpm add react-touch-mixin
yarn add react-touch-mixin
bun add react-touch-mixin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-01-19 |
| First published | 2015-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sorin Iclanzan |
| Maintainers | iclanzan |

## Links

- npm: https://www.npmjs.com/package/react-touch-mixin
- Repository: https://github.com/RealGeeks/react-touch-mixin
- Issues: https://github.com/RealGeeks/react-touch-mixin/issues
- npm.io page: https://npm.io/package/react-touch-mixin

## Dependencies (1)

- [mallet](https://npm.io/package/mallet.md) ^0.1.0

## Recent versions

- 0.1.1 (latest) — 2015-01-19
- 0.1.0 — 2015-01-14

## README

# React Touch Mixin

Mixin to enable touch interactions in React components.

## Usage

```js
// myComponent.js
var react = require('react');
var touchMixin = require('react-touch-mixin');

module.exports = react.createClass({
  mixins: [touchMixin],
  render: function () {
    /* ... */
  }
});

// application.js
var react = require('react');
var myComponent = require('./myComponent');

react.render(myComponent({
  onTap: function () {
    console.log('You tapped!');
  }
}), someDOMNode);

```

**Note:** Currently only the “tap” event is supported.

---
_Source: https://npm.io/package/react-touch-mixin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
