i am working on a project i which i used c++,javascript,Emscripten. **
In my c++ part i have struct alike
struct Person
{
int name;
string type;
.
.
}
So for generating person data i made a function which sets values and return object
So for sending and using c++ in javascript on frontend i used emscripten.
It perfectly working.Data is generating from c++ and displaying in console in js/html file (only in console)
1- data in not showing in real time on html page.When all data reloads then it shows on html(i also tried approach of async and script tag up and down in body of html) 2- How i can use this tag and data in displayed in real time in my react app.
You need to make a websocket server for showing data in realtime. If you dont know how to make a websocket server you can try socket io its simpler for beginners and works well for small projects. Socket io for cpp -https://github.com/socketio/socket.io-client-cpp