Talks to Watch

React Today and Tomorrow and 90% Cleaner React With Hooks

1.2M views · Oct 26, 2018 · 1:35:30 · 4 HN recommenders · 5 mentions · discussed 2019–2025

The first three talks from React Conf 2018, by Sophie Alpert, Dan Abramov and Ryan Florence. They introduce React Hooks and explain the problems with classes that hooks solve.

Why Hacker News points people here: It is the canonical introduction to hooks, given by the people who built them, and HN uses it to answer questions about why hooks exist.

“It's absolutely worth the watch, even if you're somewhat familiar with hooks.”HN comment, 2019

What Hacker News said 5

Strongly recommendskybishopSep 2019

“It's absolutely worth the watch, even if you're somewhat familiar with hooks.”

Explains class pitfalls and how hooks solve them.

Full comment

Have you seen the ReactConf talk on hooks? [1] It's absolutely worth the watch, even if you're somewhat familiar with hooks. They go through the pitfalls of class-based components and how hooks solve them. It more-or-less boils down to: 1. class-based components force your lifecycle logic to live in disparate locations. 2. Class-based hooks are obtuse with hidden gotchas whereas pure functions tell you exactly what they're doing. 3. A whole class of unergenomic solutions disappears when you use hooks. [1] this video

in “Frustrations with React Hooks” · view on HN
RecommendsjasongiSep 2022

Rebuttal-worthy case for hooks over classes.

Full comment

You aren’t the only person, I’ve certainly heard it before. But I’m yet to hear a convincing rebuttal to Mixins Considered Harmful [1], the hooks talk [2] or the Motivation section [3] on the announcement. The arguments I’ve heard is that it is “cleaner”, “more understandable” or the OO style is preferred. Some developers feel uncomfortable with hook magic because it introduces a more niche programming concept than OO (e.g stateful functions). I don’t find these arguments compelling. What the React team managed to do was reproduce the same functionality as class components while decreasing the footguns associated with them. 1. link 2. this video 3. link

in “React I love you, but you're bringing me down” · view on HN
RecommendsAndrewOMartinJan 2024

“Just watch the video from ReactConf 2018 where hooks are introduced (by the dude who built them).”

Introduces hooks by their creator, easy to follow along.

Full comment

Just watch the video from ReactConf 2018 where hooks are introduced (by the dude who built them). You can play along at home quite easily by getting started either with "npx create-react-app myApp" or a simple html file with one script tag to download react from a CDN and one script tag for your code. Talk: this video By the end of the talk you'll probably be leaning towards "this sounds cool, I'd like to play around with it" or "that sounds like cursed incantations for the damned".

in “Ask HN: Learn React or Vue?” · view on HN
RecommendsjfciscoApr 2025

“the talk that introduced hooks explains much better than I can”

Talk that introduced hooks, explains reuse of stateful logic.

Full comment

Hooks require less boilerplate to set up and reuse stateful logic across components If you havent watched it yet, the talk that introduced hooks explains much better than I can: this video

in “Show HN: Nue – Apps lighter than a React button” · view on HN
Cites itazimuth11May 2019

“updating document.title”

Hooks examples like updating document.title.

Full comment

While you wouldn't want to leave "console.log" in your code in production, you can use them in function components just like a classes' render methods. A better example (from the video "React Today and Tomorrow and 90% Cleaner React With Hooks" from October[1]) is something along the lines of updating document.title = `${some} Page` or possibly calling an API. [1]: this video