3 ms·
I've tried LitElement (still using it in a small project), and wanted to like it; but the whole experience was so cumbersome compared to something like React.
by azangru 6y ago
I've tried LitElement (still using it in a small project), and wanted to like it; but the whole experience was so cumbersome compared to something like React.
1) Classes for writing components. Yuck. React's function component feels much more elegant.
2) @property decorator. Double yuck! I want a reactive way of updating my component's state without having to declare this piece of state as a property accessible by the outside world.
3) this.requestUpdate(). Triple yuck compared to something like React's setState or useState hook.
4) In order to create children components, I need to create more customElement-decorated classes? Yuck again!