JaroslavTulach at 10:18, 21 April 2022 - 2022-04-21 10:18:36

←Older revision Revision as of 10:18, 21 April 2022
Line 1: Line 1:
React is dead. Long live [[Svelte]]! Or not?
React is dead. Long live [[Svelte]]! Or not?
-
[[Svelte]] is new [[UI]] framework that uses observables like [[Knockout.js]], but processes them at compile time generating efficient updates.
+
[[Svelte]] is a new [[UI]] framework that uses observables like [[Knockout.js]], but processes them at compile time generating efficient updates.
=== Weaknesses of [[React]] ===
=== Weaknesses of [[React]] ===

JaroslavTulach at 06:06, 19 November 2020 - 2020-11-19 06:06:16

←Older revision Revision as of 06:06, 19 November 2020
Line 1: Line 1:
-
React is dead. Long live [[Svelte]]! [[Svelte]] is new [[UI]] framework that uses observables like [[Knockout.js]], but processes them at compile time generating efficient updates.
+
React is dead. Long live [[Svelte]]! Or not?
 +
 
 +
[[Svelte]] is new [[UI]] framework that uses observables like [[Knockout.js]], but processes them at compile time generating efficient updates.
=== Weaknesses of [[React]] ===
=== Weaknesses of [[React]] ===

JaroslavTulach: /* Weaknesses of Svelte */ - 2020-11-19 05:47:34

Weaknesses of Svelte

←Older revision Revision as of 05:47, 19 November 2020
Line 19: Line 19:
obj = obj; // If you don't do this, update will not happen
obj = obj; // If you don't do this, update will not happen
</source>
</source>
 +
and updating arrays with simple '''push''' doesn't work. Is that a progress? Even [[knockout.js]] could do it!
[[Category:Video]]
[[Category:Video]]

JaroslavTulach: /* Weaknesses of Svelte */ - 2020-11-19 05:42:12

Weaknesses of Svelte

←Older revision Revision as of 05:42, 19 November 2020
Line 13: Line 13:
In the best tradition of learning about weaknesses, let's recommend an [https://medium.com/javascript-in-plain-english/why-svelte-wont-kill-react-3cfdd940586a article by a long time react user].
In the best tradition of learning about weaknesses, let's recommend an [https://medium.com/javascript-in-plain-english/why-svelte-wont-kill-react-3cfdd940586a article by a long time react user].
 +
Clearly the static analysis has its limit. To quote ''"...that brings some crazy patterns..."'':
 +
<source lang="javascript">
 +
const foo = obj.foo;
 +
foo.bar = 'baz';
 +
obj = obj; // If you don't do this, update will not happen
 +
</source>
[[Category:Video]]
[[Category:Video]]

JaroslavTulach at 05:40, 19 November 2020 - 2020-11-19 05:40:15

←Older revision Revision as of 05:40, 19 November 2020
Line 12: Line 12:
In the best tradition of learning about weaknesses, let's recommend an [https://medium.com/javascript-in-plain-english/why-svelte-wont-kill-react-3cfdd940586a article by a long time react user].
In the best tradition of learning about weaknesses, let's recommend an [https://medium.com/javascript-in-plain-english/why-svelte-wont-kill-react-3cfdd940586a article by a long time react user].
 +
 +
 +
[[Category:Video]]

JaroslavTulach: New page: React is dead. Long live Svelte! Svelte is new UI framework that uses observables like Knockout.js, but processes them at compile time generating efficient updates. === We... - 2020-11-19 05:37:00

New page: React is dead. Long live Svelte! Svelte is new UI framework that uses observables like Knockout.js, but processes them at compile time generating efficient updates. === We...

New page

React is dead. Long live [[Svelte]]! [[Svelte]] is new [[UI]] framework that uses observables like [[Knockout.js]], but processes them at compile time generating efficient updates.

=== Weaknesses of [[React]] ===

The best way to learn about weaknesses of some product is to read/watch rants by competitors. Like in the following presentation:

{{#ev:youtube|AdNJ3fydeao}}

I haven't yet seen more insults in thirty minutes talk (I could also make some when I was younger, but not as much).

=== Weaknesses of [[Svelte]] ===

In the best tradition of learning about weaknesses, let's recommend an [https://medium.com/javascript-in-plain-english/why-svelte-wont-kill-react-3cfdd940586a article by a long time react user].