Skip to content

A micro implementation of React.js and ReactDOM named '@cw1997/ez-react' and '@cw1997/ez-react-dom' You can use these libraries as a mini edition of official React.js and ReactDOM.

License

Notifications You must be signed in to change notification settings

cw1997/ez-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ez-react

This is a simple implementation of React.js and ReactDOM named '@cw1997/ez-react' and '@cw1997/ez-react-dom'

You can use these libraries as a mini edition of official React.js and ReactDOM.

Features

  • Generating VirtualDOM from JSX createElement function
  • function component
  • class component
    • Binding 'this' point in the class component's event handler automatically
    • Life cycle
    • Re-render when the state changes
    • Ref API

Demo

Online

https://ez-react.changwei.me/

Local

git clone [email protected]:cw1997/ez-react.git # or https://github.com/cw1997/ez-react.git
cd ez-react
pnpm install
cd packages/ez-react-demo
npm start

About

A micro implementation of React.js and ReactDOM named '@cw1997/ez-react' and '@cw1997/ez-react-dom' You can use these libraries as a mini edition of official React.js and ReactDOM.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published