JavaScript Jabber cover image

Virtual DOM and the React Way, Part 1 - JSJ 512

JavaScript Jabber

00:00

React React - How It Works

The virtual do is a way of reconciling two different trees. It works by comparing the smallest number of operations required to get from second tree to first tree. The idea was that it would be very unnatural for people to, a, write the the createe vidom using something that kind of looked like jabscript objects,. That's why react decided to imbed it within the jab script itself. And they did implement a transpiler or maybe even just a pre-processor which converts them into javascript objects. But essentially it's the same idea as h t m l - you end up with something that's kind of like j s x.

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