Aprillion / minireact

Home Page:minireact.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MiniReact

Reimplementation of React.js subset for educational purposes.

Files:

  • index.html - HTML page for the Poll app
  • app.jsx - the Poll app JSX source code
  • app.js - pure-JavaScript version generated from app.jsx by Babel.js, run following if you modify app.jsx
    $ npm install --save-dev @babel/core @babel/cli @babel/preset-react
    $ npx babel app.jsx --out-file app.js --presets=@babel/react
  • minireact.js - MiniReact implementation (in ES6 JavaScript, compatible with most modern browsers)

Screenshot

Screenshot

Links

Discussion:

Similar React-from-scratch approaches:

Actual React source code:

React now transitions to an internal async render architecture named Fiber:

About

minireact.vercel.app

License:MIT License


Languages

Language:JavaScript 90.1%Language:CSS 6.5%Language:HTML 3.4%