Taro has customised its own component library specification using WeChat Mini-Program Components as a standard, combined with the
JSX syntax specification.
Based on the above principles, on the WeChat Mini-Program side we can use all the mini program native components, while on the other side we have implemented the corresponding component libraries:
When using React we need to reference components from the Taro standard component library @tarojs/components before we can use them, for example with
<Text /> components， whereas with Vue there is no need to bring them in.
The detailed documentation of the components lists the extent to which the components are supported on different sides, as well as basic usage examples. For some components that are not listed as examples and are marked as only supported on the mini program side, you can refer directly to the Mini-Program Components Doc.
Taro's development specifications still need to be followed:
For example, using the
Map component, which is not yet supported on the H5 side
The event names of components should all start with
All uses of
bind in WeChat Mini-Program need to be converted to a form starting with