Introduction

By calling my.canIUse('component'), it is possible to judge whether the custom component function is usable in the current version. For the usage of my.canIUse(), see canIUse.
The custom component function can abstract the functions to be reused into custom component so that it can be reused on different pages. It also allows publishing custom component on npm, so that it can be reused in different Mini Programs. For the usage of npm, see npm.

The my.canIUse('component2') can be used to check if the current version supports the new custom component function.
To use the related functions of component2, in the Details > Project configuration of the developer tool, check component2:

Introduction