hand sketched logo of electrons orbiting a nucleus

TIL: Interweaving Client and Server Components is Weird

You quickly lose the ability to co-locate code!

Say you want to have a component that combines a server component and a client component. You can't just put them in the same file. You have to put them in separate files and then import them into a third file.

Further Reading

Supported Pattern: Passing Server Components to Client Components as Props