JavaScript Jabber cover image

SolidJS with Ryan Carniato - JSJ 528

JavaScript Jabber

00:00

The Differences Between React and Hooks

Reactivity appears to be simpler, like, to write than hooks are. They don't have the same stale closure rules or the most of the hook rules. There's not this model of the whole component rerunning. So we countered that by being able to analyze the JSX and using the compiler in such a way that we don't have to like walk over the DOM to create the bindings or whatnot. We can actually generate optimized DOM code at compile time where we know exactly where all the kind of binding, so to speak, go in. And this lets us separate how to put it the DOM creation code from the binding code in a sense.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app