3 ms·
More than React I am excited by what Svelte is doing. No concurrent mode, no super duper runtime magic that needs 1MB of runtime. It analyzes existing code and
by nojvek 6y ago
More than React I am excited by what Svelte is doing. No concurrent mode, no super duper runtime magic that needs 1MB of runtime. It analyzes existing code and figures out what uses what, and the code output is hyper optimized so only the things that need to be changed are changed when a variable is set. Svelte runs around react in terms of both startup and runtime performance.
It's like the difference between gas guzzling engine with 100 moving parts and an electric motor with a fewer moving parts but way better mileage.
That for me is true brilliance and thinking of UI as a reactive thing.
Hooks is a giant mindfuck because you have state bound to functions, when 99.99% of your other functions behave like good ol' functions, take inputs from params and return results. If you want state, classes are made to hold state in a thing called `this`. This is how 99.99% of all things in JS work.
- crooked-v 6y ago> 1MB React is about 5 kb.