Having just started working with Stencil, I find myself curious about the best practice for initializing variables. In my assessment, there seem to be three potential approaches:
1)
@State() private page: Boolean = true;
2)
constructor() {
this.page = true
}
3)
componentWillLoad() {
this.page = true;
}
Which method is considered the most effective?