Fireship · @fireship

The growing divide among React developers…

Uploaded May 5, 2025 · Length 5:40

The growing divide among React developers…

Summary

React developers are divided over the introduction of server components, which require a bundler, server, and client-side router, and are closely tied to Next.js.

  • react server components
  • next js
  • javascript frameworks
  • web development
  • react ecosystem

Transcript preview

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

  1. 0:00

    Don't tell anyone, but while AI has been

  2. 0:02

    taking their jobs, react devs have been

  3. 0:04

    too busy fighting their own civil war to

  4. 0:05

    even notice. On one side of the

  5. 0:07

    battlefield, you have the rebels

  6. 0:08

    fighting for their women, children, and

  7. 0:10

    the simplicity of React tooling. On the

  8. 0:12

    other, you have Team Iceland from the

  9. 0:13

    Mighty Ducks trying to sell you cloud

  10. 0:15

    infrastructure and hosting services. In

  11. 0:17

    today's video, we'll break down both

  12. 0:19

    sides of the debate so you can be

  13. 0:20

    informed on all the latest React drama

  14. 0:22

    when you're standing in line at the soup

  15. 0:23

    kitchen. It is May 5th, 2025, and you're

  16. 0:26

    watching the Code Report. If you've been

  17. 0:27

    feeling happy or fulfilled over the last

  18. 0:29

    few years, you probably missed that

  19. 0:31

    React, everyone's favorite fun and

  20. 0:32

    flirty UI library, hit puberty, started

  21. 0:34

    rage listening to Limp Biscuit, and

  22. 0:36

    seemingly changed its whole identity.

  23. 0:38

    When React first launched, despite some

  24. 0:39

    early hate, it quickly grew in

  25. 0:41

    popularity because it made the view a

  26. 0:43

    function of your application state. And

  27. 0:44

    all you had to do was worry about how

  28. 0:46

    the state of your application changed,

  29. 0:47

    and React would handle the rest. React

  30. 0:49

    today follows the same ethos, but that's

  31. 0:52

    only half of the picture now. What used

  32. 0:53

    to be a client-only library has

  33. 0:55

    metastasized across the network to take

  34. 0:57

    over the server. Take this code for

  35. 0:59

    example. This is a perfectly valid React

  36. 1:01

    server component. It doesn't need to

  37. 1:03

    follow the traditional rules of React

  38. 1:04

    like not fetching data during render

  39. 1:06

    because it doesn't have the same

  40. 1:07

    constraints as a typical React

  41. 1:09

    component. In a way, you can think of

  42. 1:10

    server components as fancy serializable

  43. 1:13

    HTML template generators. Their entire

  44. 1:15

    job is to compute the UI and ship it to

  45. 1:18

    the client. Conceptually, this is pretty

  46. 1:19

    simple, but it enables some pretty cool

  47. 1:21

    stuff. And take this one for example. If

  48. 1:23

    this were a traditional React component,

  49. 1:25

    the entire pop-up library would be

  50. 1:27

    included in the JavaScript bundle that

  51. 1:29

    the user would need to download before

  52. 1:30

    sending anything on the screen. With

  53. 1:32

    server components, all that's shipped to

  54. 1:34

    the client is the end result of the

  55. 1:35

    computation. In this case, just the

  56. 1:37

    final table and some instructions for

  57. 1:39

    React to follow during hydration. And

  58. 1:41

    more important than the bundle may be

  59. 1:42

    the compositional benefits. Again, React

  60. 1:45

    pioneered the idea of bringing

  61. 1:46

    composition to the front end by allowing

  62. 1:48

    you to create a UI by composing

  63. 1:50

    different components together. all of

  64. 1:51

    which could be isolated from one another

  65. 1:53

    and each manage their own state. If done

  66. 1:55

    correctly, composition can lead to a

  67. 1:57

    more flexible, more maintainable, and

  68. 1:59

    more scalable codebase. It's what allows