How do you connect a C++ file to React?
For further actions, you may consider blocking this person and/or reporting abuse
How do you connect a C++ file to React?
For further actions, you may consider blocking this person and/or reporting abuse
Supriya M -
Domenico Tenace -
Muhammad Awais -
Armstrong Olusoji -
Top comments (7)
Use C++ addons for node.js
P.S: You would get a better response in Stack Exchange or StackOverFlow :)
Thank you, I actually can’t stand Stack Overflow.... you mess up spelling, and they attack or even just a topic.... they get mad if you ask a NEW variation of a Question, that hasn’t been asked... and they get mad
That's a shocking reality of StackOverFlow, which needs to change as people will only be comfortable asking questions if the community is chill(informal).
You have some options here:
1) Use the NodeJS nAPI to build a native module
2) Use a C++ application as backend for your React SPA
3) Use child_process (or something like ShellJS) to handle I/O of your C++ binary
4) Take a look at Web Assembly
Make a browser which can also parse c++.
Good luck
through wasm
Run C++ in your backend/server. Communicate with it from your frontend with http requests.