Pete Hunt - The Secrets of React's Virtual DOM (FutureJS 2014)
Channel:Codegram · Length:35:25 · Published:2014-05-26 · Views:75366
Summary
Pete Hunt explains why React's virtual DOM was built, how it compares with databinding-style systems, and what it means for future browser technology. Recorded at FutureJS 2014 in Barcelona.
Why HN recommends it
Commenters point to it as the clearest explanation of why re-rendering beats tracking data changes, and say it sold them on React.
Pete Hunt did a great talk on what actually makes React / virtualdom different from other databinding approaches. — HN, 2015
Subtitles (excerpt)
[Music] so a pan awesome at speaker is Pete's hunt pete is a head of web engineering at instagram previously works mainly at facebook on the main facebook he's a core contributor to reactor jeaious he is a guitarist plays a bit of alternative rock and he'll be talking today about react jess is virtual Dom let's give them a warm welcome Pete hunt [Applause] [Music] hey guys how's it going whoa everybody get pumped up come on nice so my name is Pete I I head up web engineering at Instagram and I contribute to a library called react and I'm gonna talk to you about the secrets of the virtual Dom this is the most dramatic title I could come up with for a presentation about software engineering so work with me on this one so react is the the library that powers a lot of features on Facebook Graph search page insights lot of data visualization on canvas a lot of stuff on our mobile site including but not limited to photo uploads search and all of Instagram comm is one giant react component but I'm not going to teach you how to build stuff with react today this isn't gonna be a tutorial instead I'm gonna focus on the underlying ideas behind react rather than specific implementations and I'm also going to talk about
On Hacker News
I'll try one last time: > Sorry none of this makes any sense to me. If you're not familiar with the MVC variants (MVVM, MVP, MVI, MOVE)[0][1] we should start there. Next you should read through some common mistakes of Backbone.js like applications [LINK] and some criticisms of MVC on HackerNews in 2012[0]. Finally if you haven't before these talks, they are the ones that sold me on React: - [VIDE… — yazaddaruvala, 2023-06
I agree that calling it "React-like" seems misleading. When I read about a 'x'-like library I expect something that could actually replace 'x' and provide nearly the same features. Pete Hunt did a great talk on what actually makes React / virtualdom different from other databinding approaches.[1] Using this definition Riot.js looks a lot more like Angular, Ember et al. to me. [1] [VIDEO] — unsoundInput, 2015-01
Performance characteristics are that this increases expsense with the size of your data where as just re-rendering increases expense with the size of your UI. It's actually much more common to have lots of data but only render a small amount of it, so re-rendering is generally cheaper. The size and complexity of UIs have a natural limit because of screen size and usability, but the amount of data… — jesstaa, 2016-02
Related videos
- Hacker Way: Rethinking Web App Development at Facebook · Meta Developers · 44:36
- Pete Hunt: React - Rethinking Best Practices (updated) - JSConf.Asia 2013 · JSConf · 40:57
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- Pete Hunt: React: Rethinking best practices -- JSConf EU · JSConf · 29:31
- Dan Abramov - Live React: Hot Reloading with Time Travel at react-europe 2015 · ReactEurope · 30:40
- Hey Underscore, You're Doing It Wrong! · InfoQ · 36:30
- Chris McCord - Keynote: Phoenix LiveView - Interactive Apps without Javascript - ElixirConf EU 2019 · Code Sync · 1:12:41
- OAuth 2.0 and OpenID Connect (in plain English) · OktaDev · 1:02:17
- Jake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ... · JSConf · 35:12
- RiftSketch: Live coding in VR with the Oculus Rift, Firefox WebVR, JavaScript and Three.js · Brian Peiris · 10:36
- Interactive programming Flappy Bird in ClojureScript · Bruce Hauman · 6:22
- Build a real-time Twitter clone in 15 minutes with LiveView and Phoenix 1.5 · Chris McCord · 17:55