vtk.js GenericRenderWindow MWE

Hi!

I’m trying to get a very minimal example of a vtk.js application on a div with a specified height and width (i.e., not fullscreen), but I seem to be missing something. Here’s my code so far. I’m also sure that I shouldn’t have all those @ts-ignore comments all over the place, but I’m getting a lot of errors otherwise. It’s the same thing with the vtk React example in this page, I need to add the ts-ignore comments or else it doesn’t seem to work.

What am I missing?

ps: I’m new to React, so maybe I’m missing something there, too? I’m more familiar with vtk as a python module.