Video wird geladen...
Video konnte nicht geladen werden
React tip: "use client" misconceptions (2/5) 🚫 "You cannot nest Server Components inside Client Components because "use client" turns everything into Client Components." ✅ We can pass the rendered result of Server Components to Client Components as props. Simple example: (Server Component) (Client Component) (Server Component) is designed for... show more
43,989 Aufrufe • vor 2 Jahren •via X (Twitter)
11 Kommentare

This is part of a video I'm working on, so I'm open to feedback. What was confusing? What was missing? What could be improved? Subscribe to catch it when it's out:

Animation and music = A+ Overall knowledge transfer = Super confused Some of the confusion I think was the pacing felt fast (which I get for this showcasing the concept). Looking forward to rewatching w/ the voiceover!

Fair. Thank you for the feedback. I struggled a bit with this one. You can see I had to overexplain it in the description, which is always a sign that something is not quite clicking. It will be easier with a voice-over.

If a client component receives a children that eventually will be a server component is correct to say that he is receiving just a html blob, and then in the browser, will create the virtual dom using this html as part of the component?

We can think of it as an HTML partial. But under the hood, it's transported via a special serialized format that: - includes the rendered server components - includes references to where child client component code is in the client bundle - any props passed to those client components - supports out-of-order streaming - supports merging in incoming components without blowing up the state of what's already on the screen.

Knowing how hard it is to animate these code-blocks, this is a masterpiece, Delba!

Appreciate it! Follow @pomber for inspiration 😊

I’m in love with the style and information architecture of these animations. Really useful!

Appreciate it you saying so, thank you!

Amazing insight, thanks So if I’m using @nextjs and @supabase for auth with google on the backend, then how do I extract the provider access / refresh tokens if a user signed in with their email? We need to allow users to create google calendar events from their account page.

Thank you! I'm not intricately aware of Supabase's auth API, but I remember them having lots of great app router docs/demos. cc @jonmeyers_io In server components/middleware/server actions/route handlers, you'd use their server-side API. In client components, you'd use their client context provider, which you can place in your root layout e.g.
