Oh, that’s React! Sorry I still dunno much about it.
Most I can do is take a look at your “spectrum.ts” file and make it work as it is w/o React: