markdalgleish Profile Banner
Mark Dalgleish Profile
Mark Dalgleish

@markdalgleish

Followers
72K
Following
46K
Media
3K
Statuses
25K

🇦🇺🐨 / Working on 💿 @ReactRouter + @remix_run at @shopify / co-creator of 🦄 CSS Modules, 🧁 Vanilla Extract / @MelbJS organiser / dad x4

Melbourne, Australia
Joined February 2011
Don't wanna be here? Send us removal request.
@markdalgleish
Mark Dalgleish
8 days
We wrote a blog post that explains the new @ReactRouter RSC architecture a bit more, and how it makes our library APIs almost as powerful as Framework Mode.
Tweet card summary image
remix.run
React Router's RSC support is more than just a new feature. It's a major architectural shift that makes it a much more powerful library while also making Framework Mode less coupled to any particular...
3
12
97
@markdalgleish
Mark Dalgleish
7 days
RT @mjackson: React Router takes a unique approach to React Server Components. It’s “guts out” meaning each piece of the process is exposed….
0
2
0
@markdalgleish
Mark Dalgleish
8 days
Huge shout out to Parcel for pioneering the RSC APIs that made this possible. It’s had a big influence on us, and now the Vite implementation too.
@devongovett
Devon Govett
8 days
Very happy that Parcel helped enable this! 🤩.
1
2
73
@markdalgleish
Mark Dalgleish
8 days
In our RSC templates, the “RSC server” is ultimately just a function that the SSR server calls out to, not a remote server. The infrastructure is the same as a regular React SSR server.
1
0
10
@markdalgleish
Mark Dalgleish
8 days
When first looking at RSC, I was worried that adding an RSC server would require more complicated infrastructure, making it a tougher sell. Despite what the naming suggests, this isn’t the case. Our @ReactRouter RSC templates bundle your SSR + RSC servers into a single runtime.
1
0
18
@markdalgleish
Mark Dalgleish
8 days
So excited we got this out.
@ReactRouter
React Router
8 days
React Router now has support for React Server Components. We're introducing a more powerful RSC-powered Data Mode that brings most of Framework Mode's features to our lower level library APIs
Tweet media one
1
1
68
@markdalgleish
Mark Dalgleish
9 days
`const statusCode = …`. ☝️ constant. `const STATUS _CODE = …`. ☝️ constant, but louder.
10
2
65
@markdalgleish
Mark Dalgleish
11 days
SSR when using React as a library:. - Function you call on your SSR server.- Function you call in the browser. RSC when using React Router as a library:. - Function you call on your RSC server.- Function you call on your SSR server.- Function you call in the browser.
1
2
33
@markdalgleish
Mark Dalgleish
11 days
What changed my mind on RSC was seeing it treated as a dev-facing bundler feature, not something to be buried in framework internals. This is what allows React Router’s RSC support to feel so much simpler to me. It’s just a library that targets RSC-compatible bundlers.
1
2
64
@markdalgleish
Mark Dalgleish
11 days
I was on the fence about RSC. I could see the new abilities it unlocked. But I was wary of the added complexity, and I felt like it wasn’t solving the problems that originally brought me to React. Seeing Parcel’s low level RSC APIs (and now @vitejs/plugin-rsc) changed my mind.
2
6
159
@markdalgleish
Mark Dalgleish
15 days
The lightbulb moment for me with RSC support in React Router was realising that, to me, it’s not about server components. The real win is that frameworks can become much more portable, decoupled from specific bundlers. RSC handles bundler stuff, frameworks handle the runtime.
4
0
34
@markdalgleish
Mark Dalgleish
16 days
RT @youyuxi: For those interested in RSC in Vite 👀.
0
11
0
@markdalgleish
Mark Dalgleish
16 days
*React Router in Framework Mode. We’ll have unstable support in Data Mode soon.
3
0
13
@markdalgleish
Mark Dalgleish
16 days
Super exciting that @hiroshi_18181's RSC plugin for Vite has landed under the official @vite_js org on npm. This is a huge step towards RSC support in React Router.
Tweet card summary image
npmjs.com
React Server Components (RSC) support for Vite.. Latest version: 0.4.12, last published: 9 days ago. Start using @vitejs/plugin-rsc in your project by running `npm i @vitejs/plugin-rsc`. There are no...
7
27
229
@markdalgleish
Mark Dalgleish
16 days
Why's Discord gotta out me like that.
Tweet media one
3
0
24
@markdalgleish
Mark Dalgleish
20 days
When your kid starts humming along to your lame old person music.
2
0
27
@markdalgleish
Mark Dalgleish
1 month
Tweet media one
0
2
50
@markdalgleish
Mark Dalgleish
2 months
Seeing Mario Kart in 4K HDR is kinda blowing my mind.
3
0
11
@markdalgleish
Mark Dalgleish
2 months
Realised that the Switch 2 is a squircle but the dock isn’t. Sorry if I ruined this for you.
1
0
7
@markdalgleish
Mark Dalgleish
2 months
When comparing framework downloads, it seems logical to look at @​react-router/dev instead of react-router. BUT. I’ve been thinking, this kinda misses the fact that React Router’s Data Mode is pretty much a framework for SPAs. It's not that different from the Vite plugin.
2
0
5