DEV Community

Discussion on: SolidJS Official Release: The long road to 1.0

Collapse
 
ryansolid profile image
Ryan Carniato

Thank you. The reason for it I think is people were basically hand writing stuff like this a decade back. Solid's declarative structure makes it easier to organize your code, but the compiled output is almost exactly what a human would write to optimize some Vanilla code. There are no classes or lifecycle really, just an event system with some scheduling. The only code that gets compiled is the JSX, so your code remains yours. Brutally efficient, brutally simple.

Collapse
 
lexlohr profile image
Alex Lohr

You're right: I did handwrite stuff more or less like that a decade ago. Since there are not too many ways to manipulate the DOM, the result is mostly the same. Though I have to admit the scheduling is quite clever.

I also like that it is very expressive, like using <For each> seems such an obvious solution once you've seen it.