add multiple node box selector on the canvas of VisJS network graph in ReactJS

Examples Here is a jQuery example of canvas drawing on the network to select multiple nodes: http://jsfiddle.net/kbj54bas/ (or Github) How can this be translated to React? Sandbox I setup react-graph-vis(source) in this sandbox, and added a ref to the Graph: https://codesandbox.io/s/5m2vv1yo04 Attempts having trouble adding eventLisnters to the Graph/canvas using a React.createRef() on the ” … Read more