This repository demonstrates the integration of WebAssembly (Wasm) with Go and React.
-
Clone the repository:
git clone https://github.com/akshays-repo/wasm-react.git cd wasm-react
-
GOARCH=wasm GOOS=js go build -o main.wasm
-
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .
-
npm install npm start
-
Open your browser and visit http://localhost:5173. You should see the React app with integrated WebAssembly.
Adjust the code and configurations based on your specific requirements. Feel free to explore and modify the code for your needs. Happy coding!
This version provides a concise set of instructions on how to run the code without focusing on the installation process.