All Projects → gaoxiaoliangz → react-lite

gaoxiaoliangz / react-lite

Licence: other
A simple implementation of react

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-lite

Muve
Muve is a micro library for building interactive javascript applications.
Stars: ✭ 11 (-78.43%)
Mutual labels:  virtual-dom, jsx
Redux React Starter
DEPRECATED use the new https://github.com/didierfranc/react-webpack-4
Stars: ✭ 137 (+168.63%)
Mutual labels:  virtual-dom, jsx
Preact
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.
Stars: ✭ 30,527 (+59756.86%)
Mutual labels:  virtual-dom, jsx
Vidom
Library to build UI based on virtual DOM
Stars: ✭ 408 (+700%)
Mutual labels:  virtual-dom, jsx
Gccx
Transforms CPX (JSX like syntax) into asm-dom Virtual DOM
Stars: ✭ 234 (+358.82%)
Mutual labels:  virtual-dom, jsx
Htm
Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Stars: ✭ 7,299 (+14211.76%)
Mutual labels:  virtual-dom, jsx
Cascade
A modern library for creating user interfaces.
Stars: ✭ 50 (-1.96%)
Mutual labels:  virtual-dom, jsx
Vhtml
Render JSX/Hyperscript to HTML strings, without VDOM 🌈
Stars: ✭ 556 (+990.2%)
Mutual labels:  virtual-dom, jsx
Omi
Front End Cross-Frameworks Framework - 前端跨框架跨平台框架
Stars: ✭ 12,153 (+23729.41%)
Mutual labels:  virtual-dom, jsx
Gantt
Gantt chart library using jsx support SVG, Canvas and SSR
Stars: ✭ 148 (+190.2%)
Mutual labels:  virtual-dom, jsx
Wonders
🌈 Declarative JavaScript framework to build command-line applications.
Stars: ✭ 34 (-33.33%)
Mutual labels:  virtual-dom, jsx
core
Server side rendering with The Elm Architecture in Deno
Stars: ✭ 16 (-68.63%)
Mutual labels:  virtual-dom, jsx
Virtual Dom
关于Vue,React,Preact和Omi等框架源码的解读
Stars: ✭ 139 (+172.55%)
Mutual labels:  virtual-dom, jsx
Ng Vdom
(Developer Preview) A virtual-DOM extension for Angular, also work as React bridge.
Stars: ✭ 249 (+388.24%)
Mutual labels:  virtual-dom, jsx
tung
A javascript library for rendering html
Stars: ✭ 29 (-43.14%)
Mutual labels:  virtual-dom, jsx
fs-pochta-api
Библиотека для работы с API Почты России
Stars: ✭ 15 (-70.59%)
Mutual labels:  lib
alef-component
Alef Component for Modern Web Apps.
Stars: ✭ 46 (-9.8%)
Mutual labels:  jsx
to-htm
Conversion tool from JSX or Handlebars to htm (tagged template literal)
Stars: ✭ 35 (-31.37%)
Mutual labels:  jsx
babelfish
🐡 Straightforward library for translations and dictionaries
Stars: ✭ 47 (-7.84%)
Mutual labels:  lib
menu-hamburger
🍔 A clean, simple and easy to use library to create a Menu Hamburger
Stars: ✭ 17 (-66.67%)
Mutual labels:  lib

react-lite

A simple implementation of react

Why creating this repo

I want to understand how react works, the best way to do it is to implement it my own way.

The package is at very early stages of development, so only a handful of react features are supported.

What's been included

React

  • createElement

Function component

  • hooks: useState

Class component

  • setState
  • componentDidMount
  • componentDidUpdate
  • componentWillUnmount

ReactDOM

  • render

How to run

lerna bootstrap
yarn build --watch
yarn start

The demo runs two versions of react in two columns with identical components, which I've created for testing purposes, left side is my version, right side is react.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].