Open erdebaru opened 1 year ago
Hey, just noticed that there is no docs relating to state definition for single file components like below
class { declare state: { x: number, y: number }; onCreate() { this.state = { x: 0, y: 0 } } } <div>${state.x + state.y}</div>
Hey, just noticed that there is no docs relating to state definition for single file components like below