This demo demonstrates that we can import and instantiate C++ classes in a browser. To run the demo you need to have the Emscripten toolchain installed. To get started see the official docs.
After you've installed the toolchain, simply run npm i and then npm start.