Ryan Toronto
ryantoron.to
Ryan Toronto
@ryantoron.to
I added parallel and recursive route rendering to Twofold, which kind of blew my mind. It's the first time I've used a React pattern that specifically takes advantage of the two phase server/client render.

Wrote about it here: twofoldframework.com/blog/paralle...
Parallel and recursive route rendering
RSC route rendering without waterfalls.
twofoldframework.com
September 23, 2025 at 5:52 PM
React Cache: It's about consistency

twofoldframework.com/blog/react-c...
React Cache: It's about consistency
Learn how React's cache function keeps your components predictable and consistent.
twofoldframework.com
August 11, 2025 at 6:52 PM
New blog post: Composable streaming with Suspense

One of my favorite patterns lately has been using Suspense to stream in lazily loaded content. It's perfect for dynamic dropdown menu options.

twofoldframework.com/blog/composa...
Composable streaming with Suspense
A look at two real-world UIs that rely on streaming with Suspense.
twofoldframework.com
June 17, 2025 at 3:18 PM
Reposted by Ryan Toronto
React Router RSC Preview is now available

This brings support for all of React's API in a way that is incrementally adoptable by the millions of React Router apps in production today, but also feels great for a greenfield React Router app

remix.run/blog/rsc-pre...
React Router RSC Preview
React Router's preview support for React Server Components is now available
remix.run
May 16, 2025 at 3:23 PM
Reposted by Ryan Toronto
Server Components Give You Optionality saewitz.com/server-compo...
Server Components Give You Optionality | Daniel Saewitz
saewitz.com
April 30, 2025 at 5:39 PM
New blog post on serializing promises in React. Learn how RSC serializes data between the server and client.

twofoldframework.com/blog/you-can...
You can serialize a promise in React
Use React to create a promise on the server and later finish it on the client.
twofoldframework.com
April 25, 2025 at 3:06 PM
If you're running an RSC server how do handle the react-server condition?

1. start node with --conditions=react-server?
2. run node without conditions, but start a worker with the react-server condition?
3. Something else, like a bundle time thing?

I've been doing 1, but I'm not sure it's best
April 17, 2025 at 12:32 AM
I wrote about building toast messages into an app with React Server Components.

Really liked how easy it was to use server functions, cookies, and useOptimistic to make this all come together.

buildui.com/posts/toast-...
Toast messages in React Server Components
buildui.com
April 11, 2025 at 1:04 PM
RSC with a form and server action running while JavaScript is turned off
March 22, 2025 at 3:31 AM
Hey @sebmarkbage.calyptus.eu I have an RSC+MPA question... is there a way to have a
that uses a server action directly (so you get $ACTION_ID/REF inputs for MPA), but then after hydration is able to work with client-side code that uses useOptimistic?
March 19, 2025 at 9:21 PM
Completed this! Ended up releasing it as an open source library: github.com/twofold-rsc/...

My first RSC OSS tool, feels good :)
One of the areas where I've changed my mind recently is with server actions + closures. In the past I believed it was too dangerous to close over variables during render because it creates an implicit client param and therefore devs would be better off being explicit with hidden form inputs. but...
December 15, 2024 at 4:28 AM
Next.js source is a work of art. I was wondering how they serialize and encrypt action args and found this: github.com/vercel/next....

Of course they use an rsc stream to serialize all the args into a string... and then encrypt!
December 7, 2024 at 3:53 AM
One of the areas where I've changed my mind recently is with server actions + closures. In the past I believed it was too dangerous to close over variables during render because it creates an implicit client param and therefore devs would be better off being explicit with hidden form inputs. but...
November 28, 2024 at 7:16 PM
I made a video on useActionState! There's a lot of awesome stuff built into this hook - namely the queuing behavior and the fact that it's made to be used with transitions.

Actions are one of the coolest things coming to 19

www.youtube.com/watch?v=p_wn...
React 19: useActionState
YouTube video by Ryan Toronto
www.youtube.com
November 22, 2024 at 2:43 PM
Reposted by Ryan Toronto
React is a programming language, and its rules are its syntax.

buildui.com/posts/react-...
React is a programming language, and its rules are syntax
buildui.com
November 12, 2024 at 11:42 AM
Today's uAS thought: There's a beautiful refactor from a client-side only React app to a server backed React app in three steps.
November 7, 2024 at 6:51 PM
I just added bluesky OG previews to opengraph.ing/preview
November 5, 2024 at 7:05 PM