# react-tap-event-plugin
**Repository Path**: mirrors_fis-components/react-tap-event-plugin
## Basic Information
- **Project Name**: react-tap-event-plugin
- **Description**: Fork from https://github.com/zilverline/react-tap-event-plugin.git
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-11-09
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Introduction
You've probably heard of [iOS's dreaded 300ms tap delay](http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away). React's `onClick` attribute falls prey to it. Facebook's working on a solution in the form of `TapEventPlugin`, but it [won't be made available](https://github.com/facebook/react/issues/436) [until 1.0](https://github.com/facebook/react/pull/1170).
If you're reading this, you're probably working on a project that can't wait until they figure out how they want to publish it. This repo is for you.
When Facebook solves [#436](https://github.com/facebook/react/issues/436) and [#1170](https://github.com/facebook/react/pull/1170), this repo will disappear.
## Usage
```js
var injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
```
## Example
See demo project for a complete working example.
```js
var React = require("react");
var ReactDOM = require("react-dom");
injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
var Main = React.createClass({
render: function() {
return (
Tap Me
);
},
handleClick: function(e) {
console.log("click", e);
},
handleTouchTap: function(e) {
console.log("touchTap", e);
}
});
ReactDOM.render(, document.getElementById("container"));
```
## Build standalone version
Use the demo project and it's README instructions to build a version of React with the tap event plugin included.