Pete Hunt: React: Rethinking best practices -- JSConf EU

Channel:JSConf · Length:29:31 · Published:2013-10-30 · Views:548436

Watch on YouTube

Summary

Pete Hunt of Facebook and Instagram introduces React at JSConf EU 2013 and explains its design principles. He argues that separating templates from logic only separates technologies, not concerns, and makes the case for components.

Why HN recommends it

HN calls it the famous talk for understanding why React rejected separation of concerns by technology and for newcomers puzzled by JSX.

See Pete Hunt's famous talk — HN, 2015

Web development · Software architecture & design

Subtitles (excerpt)

[Music] Hey, I'm Pete. Uh, I'm going to talk to you about a library for creating user interfaces that we call React. And we open sourced this at JSCOM US a couple months ago. And we got some kind of sarcastic responses on Twitter. A little bit of snickering, that kind of thing. Um, we weren't really communicating what we were doing. Um, so I'd like to talk to you today about the design decisions um around React. uh what we're doing differently than other frameworks and kind of the implementation that lets us make these decisions and make it really fast. So, it's not a tutorial. It's not an introduction. You're not going to learn how to build React apps today. Um but you might be able to use some of the stuff that we've discovered in your own work. Um so, I ask that you please just give it five minutes. Some of the stuff that I'm going to say um flies in the face of some established best practices. Um but we found that there are certain best practices that deserve to be challenged. So meet React. It's a library for creating user interfaces. Specifically, we render your UI and we respond to events. A lot of people think of us as the V and MVC. Maybe we're the controller, too. Really depends on on how you use it.

On Hacker News

How far back can we go? insin/DOMBuilder was initially based on a 2006 library of the same - but differently-cased - name by Dan Webb ( [LINK] ) and the earliest variant I can recall was Mochikit.DOM ( [LINK] ) By the end of DOMBuilder's life it could generate DOM or HTML from the same code and I'd tried unsuccessfully to implement a way to rehydrate HTML by hooking up events using the same code … — insin, 2020-05
If you’re not sure of the “why” of react, I’ve found that Pete Hunt’s talk “Rethinking Best Practices” gives a great overview of the reasoning behind react. Especially from about 15:15. [VIDEO] — EdwardMSmith, 2018-02
I actually much prefer how react handles this, I think this very early react talk makes a very good point [VIDEO] — yCombLinks, 2022-09
I was very intrigued by the title: Things nobody will tell you about React.js Immediately had high hopes that someone is going to try and give a well researched, novel critique that maybe can spur out some constructive conversation. And then, sadly, the author goes on to write exactly what countless other articles have already covered and discussed to the death for years now. "HTML in JS", "JSX i… — vmasto, 2017-04
This is a very useful walkthrough. Some links for those who are also interested in "Thinking in React" in a more conceptual way (#4 is a presentation from the same person who wrote the walkthrough): 1) React — Basic Theoretical Concepts: “A description of the conceptual model of React without implementation burden.” [LINK] 2) Pure UI: “A lot has been written about the merits of React as a framewo… — firasd, 2016-05

Related videos