I've got a problem with passing a function to "onContextMenu" event. I want to pass the event and argument, but when I try to do this I receive an error:

```
Uncaught TypeError: Cannot read property 'preventDefault' of undefined

```

Here is my part of the code. I pass the function in the div at the end of the code.

```
    handleContextMenu(event, id){
        event.preventDefault()
        console.log(id)
        //this.setActiveNode(id)
        this.setState({showContextMenu: true, left: event.clientX, top: event.clientY})

    }

    renderSubNodes(subNodes) {
        const {activeNode} = this.state
        return (
          <ul>
            {subNodes.map((node) => (
                <React.Fragment>
                    <li>
                        <div onContextMenu={() => this.handleContextMenu(this, node.id)}

```

How to do this properly?