|
|
|
|
|
by b_e_n_t_o_n
277 days ago
|
|
The third example is missing the data binding that you get automatically with React. It should look more like this: function increment() {
count += 1;
dispatchEvent(new CustomEvent(
"count-incremented",
{ detail: { count } }
));
}
I think I prefer not having to manage events all over the place. |
|
Vue also isn't too far:
In 2025, React state management is complete shitshow compared to Svelte and Vue.How in the world people are claiming "React is just Javascript" is beyond me.