https://github.com/cw1997/ez-react
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.
https://github.com/cw1997/ez-react
react react-dom reactdom reactjs
Last synced: 11 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/cw1997/ez-react
- Owner: cw1997
- License: apache-2.0
- Created: 2020-10-23T09:07:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T06:24:23.000Z (over 3 years ago)
- Last Synced: 2025-04-11T00:02:07.427Z (11 months ago)
- Topics: react, react-dom, reactdom, reactjs
- Language: TypeScript
- Homepage: http://ez-react.changwei.me/
- Size: 492 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 git@github.com:cw1997/ez-react.git # or https://github.com/cw1997/ez-react.git
cd ez-react
pnpm install
cd packages/ez-react-demo
npm start
````