ArkTS Widget Adaptation FAQs

Does ArkTS widget development support V2 decorators? How do I migrate from V1 to V2?

ArkTS widget development supports the V2 decorator syntax (such as @ObservedV2 and @ComponentV2). You are advised to use V2 decorators to replace the V1 syntax for state management, so as to achieve better component rendering performance and state synchronization capabilities. For details about the syntax differences, migration procedure, and sample code, see V1 to V2 Migration Overview.