GithubHelp home page GithubHelp logo

qinsong77 / r19 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rafaelrcamargo/r19

0.0 0.0 0.0 2.87 MB

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

Home Page: https://cmrg.me/blog/rsc-part-1-the-backstory

TypeScript 100.00%

r19's Introduction

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. But this package is not published yet, so you need to clone the react repo and build it yourself.

git clone https://github.com/facebook/react.git
cd react
yarn && yarn build

Then, the predev script will copy the necessary files to the node_modules folder. (It expects the react repo to be in the same parent directory as this repo.)

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.

r19's People

Contributors

rafaelrcamargo avatar aheissenberger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.