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: (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: Attempts having trouble adding eventLisnters to the Graph/canvas using a React.createRef() on the ” … Read more