JS error when your plugin is not react
index.ts:8 Uncaught TypeError: Cannot read property 'dataset' of null
at Object.<anonymous> (index.ts:8)
at n (bootstrap:19)
at bootstrap:83
at admin.bundle.js:1

Thanks for reporting, this throws in error in your razor view? Not sure how I understand how to reproduce.
Yeah, just created add-on based on razor pages. Will try to define repro steps (if any).
That helps can try that and see
@valdisiljuconoks it looks like you are loading the admin mode inside your add-on. the linked file is the entry module of our new admin mode. I guess you are using our View which loads the client resources correct?
Correct
Is there a reason you used the view instead of your own view? Is it okay to close this?
Think we can close, cannot repro anymore