Skip to content

Latest commit

 

History

History
228 lines (162 loc) · 9.09 KB

README_EN.md

File metadata and controls

228 lines (162 loc) · 9.09 KB

Taro

A cross-platform and -framework solution for easily developing applications across mini-programs, Web, APP, etc.

PRs Welcome GitHub contributors GitHub commit activity GitHub closed issues GitHub commits since latest release (by date) GitHub Release Date

简体中文 | English

👽 Taro['tɑ:roʊ], Ultraman Taro, the chief instructor of the Space Guard, the strongest Ultraman.

Contents

  1. Introduction
  2. Resources
  3. Community
  4. Cases
  5. Feature
  6. Join us
  7. Issues
  8. Acknowledgements
  9. Contributors
  10. Milestones
  11. Release Notes
  12. Communication

Introduction

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.

Version

To migrate from Taro 1/2 to Taro 3, please refer to The definitive guide to Taro version upgrades.

Resources

5 Minute Tutorial

Awesome-taro

Juejin book: Taro Cross-platform Development in Action

Community

Taro market

UI Library

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

Cases

Taro has been used in our production environment, and widely used in the industry for cross-platform development.

Call for more cases

Feature

Framework support

React/Nerv

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>
    )
  }
}

Vue

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>

Cross-platform support

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.

Join us

Taro community

Welcome to the Taro community

Contribute to Taro

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.

Issues

Report issues to Taro

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.

Let's fund issues in this repository

Acknowledgements

nanjingboy jsNewbee Qiyu8 Garfield550
nanjingboy jsNewbee Qiyu8 Garfield Lee

Contributors

Milestones

Milestones

Release Notes

Taro follows Angular Style Commit Message Conventions, please read Release Notes.

Communication

Official Wechat group

License

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.