pukhalski / tap

1Kb library for easy unified handling of user interactions such as mouse, touch and pointer events.
https://github.com/pukhalski/tap/archive/master.zip
MIT License
527 stars 45 forks source link

Usage with reactjs #27

Open iamstarkov opened 9 years ago

iamstarkov commented 9 years ago

Reactjs is very popular right now. I think, it’s good idea to include instructions for reactjs too

havenchyk commented 9 years ago

@iamstarkov :+1: Here is an example of using something similar for react, but it looks a bit complex for me, how to convert tap to make it compatible with react. @iamstarkov, could you assist on this task?

iamstarkov commented 9 years ago

Suggested solution is not scary at all, from my point of view

iamstarkov commented 9 years ago

but, it doesn’t relate to tap =)

iamstarkov commented 9 years ago

If we want to convert tap to be react-compatible, then first of all it should be published to npm #24

larchanka commented 9 years ago

Dear people,

I think we have a solution. Will check it tomorrow, and, if it'll work, we will implement it.

iamstarkov commented 9 years ago

looking forward for news from you, @larchanka!

pukhalski commented 9 years ago

@larchanka, any news so far?

pukhalski commented 9 years ago

I believe we can use this as a ref: https://github.com/zilverline/react-tap-event-plugin/tree/master/src

It's a bit comprehensive but works.

havenchyk commented 9 years ago

@iamstarkov do you have any solution in the mind?

iamstarkov commented 9 years ago

Currently I ended up with using react-tap-event-plugin

iamstarkov commented 9 years ago

when I was opening this issue, I wanted solution which rely on this this lib (react-tap-even-plugin is not).

iamstarkov commented 9 years ago

Also referencing this plugin will confuse everyone because of name and everybody will think that react-tap-plugin are using tap inside, which is not true and it might be a problem

havenchyk commented 9 years ago

@larchanka ping.

iamstarkov commented 9 years ago

any news here?

slorber commented 9 years ago

There's a bug in the React plugin 0.13.?, so I'm still considering a tap lib to use with React https://github.com/zilverline/react-tap-event-plugin/issues/22