/vite-react-boilerplate

A React.js Template using Vite

Primary LanguageTypeScriptMIT LicenseMIT

Vite React Boilerplate

A Vite and react Boilerplate repo

Installation

  1. Press the Clone Template Button.
  2. Clone your copy of the repo.
  3. Open the package.json file and change the name field to your project name, and change the description as well as updating the license.
  4. Install the dependencies. (This repo uses yarn, but you can use any package manager you like.)

Usage

Styling

WindiCSS is used for styling, it is similar to Tailwind but with more features:

State Management

We use Storeon, a tiny, redux-like state manager.

Animation

React Spring is our animation library of choice. This one needs no introduction. (Definitely not because I don't want to write the readme right now 😉)

Available Scripts

In the project directory, you can run:

yarn dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

yarn build

Builds the app for production to the dist folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)