I'm trying to nest another React component within the Hammer component:
import React from "react"
import Hammer from "react-hammerjs"
class Note extends React.Component {
render() {
let style = { height: "50px", width: "50px", background: "blue" }
return <div className="Note" style={ style } >
{ this.props.name }
</div>
}
}
export default class App extends React.Component {
handleTap(...args) {
alert("tap")
}
render() {
return <Hammer onTap={ (...args) => this.handleTap(...args) }>
<Note />
</Hammer>
}
}
... and I get this error:

It works fine unless I use another React component inside of <Hammer>.
I'm trying to nest another React component within the Hammer component:
... and I get this error:
It works fine unless I use another React component inside of
<Hammer>.