Earlier quoted context omitted.
You can already do that by running Node with SSR (or any npm/js code) in .NET using Node Services [1] or use ReactJS.NET that packages everything for you [2]. But Microsoft won't officially do any more since they have Blazor which lets you run C#/.NET in the browser with both client-side WASM and server-side SignalR/websocket running modes. It's much more advanced and functional than React already. [3] 1. https://cha…
Sadly Node Services has gone the way of the Dodo bird. I'm not aware of any replacement. https://github.com/dotnet/aspnetcore/issues/12890
The closest community project is https://github.com/JeringTech/Javascript.NodeJS and should be a drop-in replacement for `INodeServices`
If you just want V8/JS scripting then there's https://github.com/microsoft/ClearScript