exact is a universal React framework for building web applications with support for both server-side rendering (SSR) and static site generation (SSG). The current stable version is 1.0.1 (August 2024), with monthly releases. It differentiates itself from Next.js by offering a minimal, framework-agnostic approach with zero configuration, automatic code splitting, and built-in TypeScript support. The package was originally a different utility (v0.x) but was renamed for the React framework. It is designed for modern React development with ESM and CommonJS support.
npm install exactVerified import paths — ran on the pinned version, not inferred.
Creates a basic server that renders a React component to string using exact.createServer.
Update to v1.0 and rewrite code using the new React framework APIs.
Use import instead of require.
Use dynamic import() for route-based code splitting.
Upgrade Node.js to version 14+ or use static export.
Run 'npm install exact@1.0.1' and ensure import path is correct.
Use named import: import { createServer } from 'exact'.Add 'type': 'module' in package.json or use .mjs extension.