Problem showing arrow handles in vtkLineWidget

I’m trying to use a vtkLineWidget in a React environment. I can get much of it working, but the handles on the two ends of the line doesn’t show, so I really can’t move its endpoints. The code is

Basically, I started with vtk.js
and changed not to use a vtkFullScreenRenderWindow, but a react div.

Can someone tell me what I’m doing wrong?

You will additionally need to bring in import "@kitware/vtk.js/Rendering/Profiles/Glyph";, since the handles are rendered using the Glyph3DMapper.

Thanks. It worked!