Skip to content

vanmarino/react-wasm-vite-boilerplate

Repository files navigation

React + TypeScript + Vite + WASM + Rust

This template provides a minimal setup to get React working in Vite with HMR, WASM and some ESLint rules.

Prerequisites

  • Rust
  • Node.js
  • Yarn (or another package manager)

Getting Started

Follow these steps to get the project up and running on your local machine:

  1. Clone the repository:

    git clone https://github.com/rottier/react-wasm-vite-boilerplate.git
    cd react-wasm-vite-boilerplate
    
  2. Install dependencies:

    yarn install
    
  3. Build the project:

    To build the project for development:

    yarn dev
    

    To build the project for production:

    yarn build