Repository Details
Shared by
HelloGitHub Rating
0 ratings
Claim
Discuss
Collect
Share
37.4k
Stars
Yes
Chinese
TypeScript
Language
Yes
Active
1
Contributors
2k
Issues
Yes
Organization
4.1.11
Latest
5k
Forks
None
License
More
一套 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