How to use electron with c++ DirectX?



I am trying to create a Desktop app using HTML and JavaScript. I am using C++ and DirectX to open and render 3D files. I would like to know if it is possible to use electron for this purpose? and if yes, are there any examples of using electron with DirectX because I am new to the graphics field.



WebGL might be your option as it is native for Web


Yeah I know that, but in my case I have to use DirectX. That is why I am struggling.