simple-react

by hujiulong

hujiulong / simple-react

simple react

219 Stars 67 Forks Last release: Not found MIT License 22 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

simple-react

996.icu

一个极简的React框架,用于说明React实现原理,请不要用于生产环境

实现了JSX,组件,生命周期,diff,setState等核心功能

相关文章

运行

git clone https://github.com/hujiulong/simple-react.git
cd simple-react
npm install
npm start

使用

为了简单起见,并没有分开库代码和应用代码,可以直接修改

src/index.js
来使用 ```jsx // src/index.js import React from './react' import ReactDOM from './react-dom'

class App extends React.Component { render() { return

Hello,World!

; } }

ReactDOM.render( , document.getElementById( 'root' ) ); ```

LISCENSE

MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.