Fireship · @fireship

React wants to win you back…

Uploaded October 17, 2025 · Length 4:11

React wants to win you back…

Summary

React 19.2 updates, React compiler 1.0, and React's future foundation

  • react updates
  • react 19.2
  • react compiler
  • react future

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    Last week, I got to participate in my

  2. 0:02

    favorite activity of the year. No, it

  3. 0:04

    wasn't watching all the overleveraged

  4. 0:05

    crypto bros learn what a margin call is.

  5. 0:07

    It was hate watching React comp as an

  6. 0:10

    anti-react influencer. Every year I

  7. 0:12

    crawl into my spelled Snuggy and I watch

  8. 0:14

    the React team try to convince everyone

  9. 0:16

    that their new APIs fix all of their old

  10. 0:18

    APIs. And though it hurts me to say it,

  11. 0:20

    this year I think they may have actually

  12. 0:22

    done it. I know this is an AI channel

  13. 0:23

    now, but in today's video, we'll revisit

  14. 0:25

    the worst parts of React to see if the

  15. 0:27

    announcements they made at React Comp

  16. 0:29

    will actually make a difference. It is

  17. 0:31

    October 17th, 2025, and you're watching

  18. 0:34

    the code report. The greatest trick the

  19. 0:35

    devil ever pulled was making referential

  20. 0:38

    stability a prerequisite to writing

  21. 0:40

    React apps that don't blow up. Just last

  22. 0:42

    month, Cloudflare had a massive outage

  23. 0:44

    because their dashboard kept making

  24. 0:46

    unnecessary calls to one of their own

  25. 0:47

    APIs, which led to them basically

  26. 0:50

    themselves. If you're a React dev, you

  27. 0:52

    know this is the primary use case for

  28. 0:54

    React's use effect hook. And it's

  29. 0:55

    exactly what caused this embarrassing

  30. 0:57

    bug for Cloudflare. But it's hard to

  31. 0:59

    blame React for this. The whole

  32. 1:00

    situation could have been avoided if

  33. 1:02

    only the poor debit Cloudflare would

  34. 1:03

    have read the docs on use effect. Then

  35. 1:05

    this post which shows you when to use

  36. 1:07

    it. Then this post which shows you when

  37. 1:08

    to not use it. Then this post which

  38. 1:10

    shows you what it actually does. Then

  39. 1:12

    this post which shows you how to use it

  40. 1:14

    correctly. And now with React 19.2. this

  41. 1:16

    post which shows you how to work around

  42. 1:18

    it with React's new use effect event

  43. 1:20

    hook. The way it works is it creates a

  44. 1:22

    function that you can use inside of use

  45. 1:24

    effect without needing to declare it in

  46. 1:26

    the dependency array. This is nice for

  47. 1:28

    situations like this where you need to

  48. 1:30

    use a value inside of use effect but

  49. 1:32

    don't want the effect to rerun when it

  50. 1:34

    changes. And the other big API addition

  51. 1:36

    was the new activity component which you

  52. 1:38

    can think of like a smarter display none

  53. 1:40

    that React itself controls. It lets you

  54. 1:43

    show and hide certain components, but

  55. 1:45

    unlike display none, React is able to

  56. 1:47

    maintain the state of those components

  57. 1:48

    across visibility and also deprioritize

  58. 1:51

    the work it does for hidden components.

  59. 1:53

    And if you've been drinking your lead

  60. 1:54

    lace protein and want to live on the

  61. 1:56

    edge, you can install React's Canary

  62. 1:58

    version where you'll get the new view