Closed Aarbel closed 4 years ago
For example in a React File, does the simple import is enough to make it work ? Thanks a lot for your help !
import tocca from 'tocca'; class MyComponent extends React.Component { componentDidMount() { const element = document.getElementById("my_target") element.addEventListener('tap',function(e){ console.log("Element tapped") }); } render() { <div id="my_target"> TARGET </div> } }
import 'tocca';
should be enough.
For example in a React File, does the simple import is enough to make it work ? Thanks a lot for your help !