Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Leverage ES decorators

$
0
0

JS has stage 3 decorators proposal

Would it be posible/considered to use ES decorators from rescript?

@defineElement("my-class")
class C extends HTMLElement {
  @reactive accessor clicked = false;
}

Viewing all articles
Browse latest Browse all 2592

Trending Articles