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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 25, 2023, 11:17 PM EDT
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.
Guest UserRank #877 · 2.5K reputationPosted Mar 26, 2023, 4:08 AM EDT
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.