A cross-platform and -framework solution for easily developing applications across mini-programs, Web, APP, etc.
👽 Taro['tɑ:roʊ], Ultraman Taro, the chief instructor of the Space Guard, the strongest Ultraman.
- Introduction
- Resources
- Community
- Cases
- Feature
- Join us
- Issues
- Acknowledgements
- Contributors
- Milestones
- Release Notes
- Communication
Taro is an open style cross-platform and -framework solution that supports users to develop WeChat/JD/Baidu/Alipay/ByteDance/QQ mini-programs/H5 and React Native applications with React/Vue/Nerv and other frameworks. Nowdays, there are various types of mini-programs on the market. Multiple platforms such as Web, React Native, and WeChat mini-programs are widely used by the developers. Different codes are written while we require to show features on different platforms. The ability to be compatible with multiple platforms within one code is extremely needed.
To migrate from Taro 1/2 to Taro 3, please refer to The definitive guide to Taro version upgrades.
Juejin book: Taro Cross-platform Development in Action
Name | Link | Intro | Framework | Taro Version |
---|---|---|---|---|
taro-ui | https://taro-ui.jd.com/#/ | A cross-platform UI library based on Taro | React | Taro 1/2/3 (Alpha-version needed for Taro 3) |
NutUI | https://nutui.jd.com/#/ | A JD-style light-weighted Vue library | Vue3 | Taro 3 |
taroify | https://taroify.gitee.io/taroify.com/introduce/ | A light-weighted and reliable Taro library for mini-programs (Vant's Taro version) | React | Taro 3 |
@antmjs/vantui | https://antmjs.github.io/vantui/#/home | A UI library that supports Taro and React, based on Youzan VantWeapp | React | Taro 3 |
Taro has been used in our production environment, and widely used in the industry for cross-platform development.
Taro 3 has full-featured development experience with React/Nerv, please refer to Basic tutorial for React.
Example:
import React, { Component } from 'react'
import { View, Text } from '@tarojs/components'
export default class Index extends Component {
state = {
msg: 'Hello World! '
}
componentWillUnmount () { }
componentDidShow () { }
componentDidHide () { }
render () {
return (
<View className='index'>
<Text>{this.state.msg}</Text>
</View>
)
}
}
Taro 3 has full-featured development experience with Vue, please refer to Basic tutorial for Vue.
Example:
<template>
<view class="index">
<text>{{msg}}</text>
</view>
</template>
<script>
export default {
data () {
return {
msg: 'Hello World!'
}
},
created () {},
onShow () {},
onHide () {}
}
</script>
Taro's ultimate goal is to provide a solution for cross-platform development.
Taro supports converting code to WeChat/JD/Baidu/Alipay/ByteDance/QQ mini-programs and H5 applications.
You are very welcome to contribute your code for Taro, before submitting your code, please read CONTRIBUTING.
If you want to implement a feature for Taro, you need to write an RFC document first. Follow the RFC and submit your code after the discussion in the community.
Highly recommend reading these books before reporting issues How to Ask Questions The Smart Way(Chinese), How to Ask Questions in an open-source community, How to Report Bugs Effectively, How to Ask Bad Questions to Open Source Projects(Chinese). Good questions can be answered quickly.
nanjingboy | jsNewbee | Qiyu8 | Garfield Lee |
Taro follows Angular Style Commit Message Conventions, please read Release Notes.
MIT License
Copyright (c) O2Team
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.