What is the best way to get screen coordinates in a react application?

If I am in a react application, how do I convert the canvas coordinates of an htmldiv object into vtk coordinates in order to use it in a picker operation?

The y is flipped and then it depend if you have a match between the client size rect and your renderview size.