wasm-counter icon indicating copy to clipboard operation
wasm-counter copied to clipboard

Simple Counter using React and Zig

WASM Counter

A super simple React component that increments a count on an interval. The cool part is that the function used to increment the count is written in zig. Parcel handles the instantiation of the WebAssembly module so the DX is as simple as directly importing .wasm files into your JavaScript.

Running

You'll need yarn and zig installed.

  • yarn install
  • yarn start