I need to call C# DLL (WPF application built using .NET) from ReactJS.
- I saw on one of the forums that we can use DLLExport in c# and use 'require' to import the DLL in NodeJS. I tried the same for my ReactJS app. But get error "require is not defined and have trouble resolving it for ReactJS. Please find the below link that I used as reference to make use of DLLExport and require.
https://www.youtube.com/watch?v=pN5NXDtOuek
- It was specified in the below forum that EdgeJS can be used as a bridge between NodeJS V8 and C# CLR. But haven't tried yet.
Call Function from DLL loaded in front-end javascript (load dll in clientside javascript)
Now, I wonder if I am using the right approach. Can NodeJS sample be used as reference to make ReactJS call DLL, as NodeJS is server side.
I would appreciate any pointers on this or kindly refer any material or documentation(for calling c# dll from reactJS). Thank you.