Repository Details
Shared by
HelloGitHub Rating
0 ratings
一套 React 语法规范的多端开发解决方案
Past 6 days Received 11 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周日 | 37,741 | — |
| 周一 | 37,743 | +2 |
| 周二 | 37,745 | +2 |
| 周三 | 37,749 | +4 |
| 周四 | 37,751 | +2 |
| 周五 | 37,752 | +1 |
37.8k
Stars
Yes
Chinese
TypeScript
Language
Yes
Active
825
Contributors
2k
Issues
Yes
Organization
None
Latest
5k
Forks
None
License
一套 React 语法规范的多端开发解决方案。我们可以只书写一套代码,再通过 Taro 的编译工具,将源代码分别编译出可以在不同端(微信小程序、H5、React-Native 等)运行的代码。已经投入到了京东生产环境使用,示例代码如下:
```javascript
import Taro, { Component } from '@tarojs/taro'
import { View, Button } from '@tarojs/components'
export default class Index extends Component {
constructor () {
super(...arguments)
this.state = {
title: '首页',
list: [1, 2, 3]
}
}
.... // 代码来源官网示例
}
```
Included in:
Vol.28
Comments
Rating:
No comments yet