Hi Team
Does react version 18 reads cplus plus library for back end to be UI component? If so which npm that is suitable to read any cplus plus library relevant to react?
Hi Team
Does react version 18 reads cplus plus library for back end to be UI component? If so which npm that is suitable to read any cplus plus library relevant to react?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Mar 26, 2023, 8:08 AM
Hi Tuhin
Yes excellent thanks for the feedback, yes because some industries now often use C++ as compared to Python for data analysis and algorithms and want their UI to be written in React/Angular Js. That is why i pose the question if there any C++ libraries that React components can be able read and write as UI components.
Tuhin PaulPosted Mar 26, 2023, 3:17 AM
If I understand your question correctly, I think React is a JavaScript library for building user interfaces, and it is not designed to read or directly interact with C++ libraries. If you have a C++ library that you want to use in a React project, you would need to use a tool like WebAssembly (WASM) to compile the C++ code to WebAssembly bytecode that can run in a browser. Once you have compiled the C++ code to WASM, you can then use it in your React project by importing the compiled module. There are several packages available on npm that can help you compile C++ code to WebAssembly. Using these tools can be complex and require a deep understanding of both C++ and JavaScript, so it's not a trivial task.
Also requesting other community members if they can share some insights as I think this is a very good question and thanks for raising this to our community Forum.