JedWatson / react-tappable

Tappable component for React
http://jedwatson.github.io/react-tappable/
MIT License
862 stars 90 forks source link

How to get ref of created element ? #132

Closed Aarbel closed 4 years ago

Aarbel commented 4 years ago

I just transformed a button to a Tappable to manage touch events on mobile.

Problem

React's ref don't work after that

Here's my code image

Thanks a lot for your help @JedWatson ;)

Aarbel commented 4 years ago

Solved here : https://github.com/JedWatson/react-tappable/issues/88

But @JedWatson could be really great to pass all props to generated element. With ...props.