top | item 20336901

(no title)

mfatica | 6 years ago

I think svelte compiling to native javascript is lightyears more understandable than whatever the hell react is doing

discuss

order

s_y_n_t_a_x|6 years ago

I think it's the reverse. If you write pure functional components, React is very understandable. It's easily testable, you know that you'll have the same output if you pass it the same props. Svelte templates just take us back where we've been, with the twist of compiling the templates, which I believe some templating libraries already did.

mfatica|6 years ago

React conceptually is very understandable, but understanding what it's actually doing under the hood is not.

thiht|6 years ago

> whatever the hell react is doing

Being JavaScript?

shados|6 years ago

I'm a huge React fanboy, but if you try and step through the React code with a debugger, we're kind of a far cry from the days of Backbone and even Angular. For the common mortal, it has to be treated as a black box. Fortunately, its fairly stable, so it's rare you have to care, but...