What it does
A Cursor rules file for writing HarmonyOS apps in ArkTS. It covers component structure, state decorators, layout and styling, event handling, lifecycle hooks, and the use of app resources, so generated components follow one pattern.
Use cases
- 01Choose between State, Prop and Link for component data
- 02Split a large build method into smaller components
- 03Handle async errors and show them to the user