Log inSign up
Ryan Toronto
2,012 posts
Image
user avatar
Ryan Toronto
@ryantotweets
I like writing about RSC! twofoldframework.com/blog
NJ
Joined October 2013
604
Following
3,816
Followers
  • user avatar
    Ryan Toronto
    @ryantotweets
    Feb 6, 2023
    I updated @_buildui's user search to use React Server Components with Next 13's appDir. The code for this was so simple.
    Image
    00:00
    378K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Dec 4, 2023
    URLPattern is pretty dope. I love how this just works...
    Image
    74K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Jul 19, 2023
    Fun little RSC experiment today... Passing a pending db query into a client component. Kinda mind blowing you can pass promises over the network like this 😉
    Image
    187K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Jun 26, 2023
    Here's a little component I use in all my RSC apps. It refreshes all the data fetched in a React Server Component whenever the window gets refocused. buildui.com/recipes/refres…
    41K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Apr 22, 2023
    Using mjml + React to code emails is amazing. Since your emails are React components you can render them anywhere in your app. Here's a little preview tool that shows me emails for recent purchases.
    Image
    Image
    45K
  • user avatar
    Ryan Toronto
    @ryantotweets
    May 17, 2023
    The first part of my tutorial on pagination w/ RSC has been published! It still blows my mind you can read query params, use Prisma, and render Next's <Link> tag in a single component.
    Image
    Adding server-side pagination - Data fetching with React Server Components
    From buildui.com
    38K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Sep 30, 2023
    SSR + Suspense + Streaming! I got SSR added to my RSC implementation and one of the coolest things is streaming just works. Here's HTML being streamed down to the browser as the suspense boundaries resolve. Amazing that React gives you the APIs needed to build this:
    Image
    00:00
    40K
  • user avatar
    Ryan Toronto
    @ryantotweets
    May 16, 2023
    Pagination w/ RSC + query params + Next's <Link> component. Feels snappy fast, and the back button works out of the box.
    Image
    00:00
    32K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Aug 9, 2023
    Stole this idea from Remix: An <Await> component that suspends for a promise. The nice thing about this is it lets me try out different loading UIs before extracting and naming a new component, defining its props, and declaring its types.
    Image
    00:00
    74K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Jul 5, 2023
    Here's the submit button I am using with my React Server Actions. It uses `useFormStatus()`, a new experimental hook from React, to control the loading spinner. This is how it works…
    Image
    GIF
    37K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Sep 20, 2023
    Just published a Build UI recipe for this <Await> component. Absolutely love using this! buildui.com/recipes/await-…
    user avatar
    Ryan Toronto
    @ryantotweets
    Aug 9, 2023
    Stole this idea from Remix: An <Await> component that suspends for a promise. The nice thing about this is it lets me try out different loading UIs before extracting and naming a new component, defining its props, and declaring its types.
    Image
    00:00
    113K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Feb 6, 2023
    Replying to @ryantotweets
    Next, the server component reads the query param, performs a search, and re-renders the list of users. All this happens server-side:
    Image
    179K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Feb 6, 2023
    Replying to @ryantotweets
    Here's the search component. It's a client side input that starts a transition via the onChange event. The transition adds the search term as a query param and then pushes the browser to that url:
    Image
    23K
  • user avatar
    Ryan Toronto
    @ryantotweets
    Nov 4, 2023
    Having a lot of fun with useFormState + server actions. It's like a useReducer() where the state lives on the client and the action lives on the server.
    Image
    00:00
    21K

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
Advertisement
Advertisement