Static-site generation for React on Vite.
Vite React SSG is a tool for static-site generation for React on Vite. It provides support for @tanstack/router, with ongoing support for wouter. The experimental support for @tanstack/router includes features such as lazy loading, data fetching, and customization options.
To install Vite React SSG, you can follow these steps:
npm install vite-react-ssg
import { createApp } from 'vite-react-ssg';
Vite React SSG is a useful tool for static-site generation in React applications, offering support for @tanstack/router and various customization options. Its ability to switch between SSR and CSR during development, along with features like lazy loading and data fetching, make it a versatile solution for building static React sites. If you are looking to streamline your static-site generation process with React, Vite React SSG is worth exploring further.