https://github.com/fishjar/react-wasm-demo
https://github.com/fishjar/react-wasm-demo
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fishjar/react-wasm-demo
- Owner: fishjar
- Created: 2023-03-16T02:11:14.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T09:15:45.000Z (about 3 years ago)
- Last Synced: 2024-05-28T23:02:44.934Z (about 2 years ago)
- Language: JavaScript
- Size: 475 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started with Create React App
```sh
cargo install wasm-pack
cargo new wasm-lib --lib
cd wasm-lib/
# --target bundler(default) - for bundlers like Webpack, Parcel, or Rollup.
# --target web - for the web as ECMAScript module.
# --target no-modules - for the web without ECMAScript module.
# --target nodejs - for Node.js
wasm-pack build --target web --out-dir pkg
npm run build:wasm
npm install ./wasm-lib/pkg
npm run start
npm run dev
npm run build
npx serve ./build
```