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.
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-ui-liveform-funinteraction-development
openharmony 鸿蒙 js-ui-widget-development
openharmony 鸿蒙 arkts-ui-widget-page-animation
openharmony 鸿蒙 arkts-ui-widget-event-uiability
openharmony 鸿蒙 arkts-form-overview
openharmony 鸿蒙 arkts-ui-widget-creation
openharmony 鸿蒙 arkts-ui-widget-event-call
openharmony 鸿蒙 arkts-ui-widget-dark-light-color-adapt