Overview of Taro supported platforms and syntax
Taro is a multi-platform framework that supports H5, ReactNative, and various mini-programs including WeChat, JD, Baidu, Alipay, ByteDance, QQ, DingTalk, Enterprise WeChat, and Feishu.
Key syntax and architectural notes:
- Syntax is consistent with React or Vue.
- Uses mini-program components (HTML is also supported).
- Mini-program API calls are accessed via the
Taro.namespace. - Routing is configured within the
pagefield rather than using a traditional router. - Network requests are made using
Taro.request()instead of axios.