Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Foveluy/Luy
a React-like framework
https://github.com/Foveluy/Luy
react react-like reactdom reactjs
Last synced: 2 months ago
JSON representation
a React-like framework
- Host: GitHub
- URL: https://github.com/Foveluy/Luy
- Owner: Foveluy
- License: other
- Created: 2017-09-25T09:58:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T09:41:41.000Z (over 6 years ago)
- Last Synced: 2024-08-03T09:09:29.456Z (6 months ago)
- Topics: react, react-like, reactdom, reactjs
- Language: JavaScript
- Size: 1.52 MB
- Stars: 356
- Watchers: 21
- Forks: 31
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-github-star - Luy - like framework | Foveluy | 354 | (JavaScript)
README
![](https://github.com/Foveluy/Luy/blob/master/art/luy.png?raw=true)
# Luy,一个类 React 框架
所谓类`React`框架就是**和 React 用法一模一样**的框架。我的目标是,缔造一个和 React 一摸一样的框架。
## 跑 fiber 架构
```
git clone https://github.com/Foveluy/Luy.git
cd Luy
npm i --save-dev
npm run start
```## 以下是 React 15 版本的
和`React`一模一样,我们来看一个最简单的实例
```javascript
import React from 'luy'
import ReactDOM from 'luy'class Luy extends React.Component {
render() {
returnHello,Luy!
}
}ReactDOM.render(, document.getElementById('root'))
```## 性能测试
* [Luy 第一版性能测试](http://htmlpreview.github.io/?https://github.com/215566435/Luy/blob/master/performance/luy/index.html)
* [react 官方性能测试](http://htmlpreview.github.io/?https://github.com/215566435/Luy/blob/master/performance/react/index.html)