How Imports Work in RSC

Cover art for How Imports Work in RSC

TL;DR: RSC doesn't decide where your code runs. Poison pills stop code entering the wrong world, and 'use client' / 'use server' let one world point at the other without pulling it in. Dan Abramov rebuilds the frontend/backend split from first principles, and RSC turns out to be two small additions to the module system.

From · · 5m

TL;DR: How Imports Work in RSC

Dan Abramov rebuilds the frontend/backend split from first principles, and RSC turns out to be two small additions to the module system.

RSC doesn't decide where your code runs. Poison pills stop code entering the wrong world, and 'use client' / 'use server' let one world point at the other without pulling it in. Dan Abramov rebuilds the frontend/backend split from first principles, and RSC turns out to be two small additions to the module system.

  • One program, two computers
  • Mostly not about RSC
  • Modules are for humans
  • Bridging writing and running

Read the story version — the same reporting as a swipeable deck of 20 cards.

Read the original on Overreacted

How we make summaries

React

Sign in to react and comment.

Comments (0)

Life is short. Keep it sweet. Respect others' opinions and be kind!

    Recommended next

    More decks on react and related topics.