/r19

A dead-simple React 19 "framework" implementation from scratch

Primary LanguageTypeScript

R19 🏎️

A React 19 "framework" from scratch.

The name was definitely not inspired by F1 cars. :))

Features

This has a lot of cool caveats, like using Bun for most of the internals and (maybe) the first React 19 framework to implement ESM and not a bundler like Webpack to be bundled.

  • Bundling
    • TS Support
      • JSX Support
    • Assets (Images, Styles, etc...)
  • File-based routing
  • RSC (React Server Components)
  • RSA (React Server Actions)
  • SSR
    • Static export
      • Serve static files for default route states

Examples

  • Simple
    • A basic overview of the features
  • Advanced
    • A more complex system with a SQLite database

Usage

This project uses react-server-dom-esm as the "plugin" to integrate with most of the React 19 features.

With all the dependencies set up, you can run the project with:

bun i && bun dev

License

I don't encourage anyone to use this project in production, not even close to it. This is just a fun project where all can learn more about React and its internals.