Content
@
0 reply
0 recast
2 reactions
Brenner @ Edge City
@brenner.eth
Ok who wants to help me understand nextjs app router? And ‘use client’ vs ‘server-only’? I’m not used to not being able to have any “useState()” functions wherever I want??
10 replies
9 recasts
56 reactions
Tayyab - d/acc
@tayyab
What Woj said, server is the default execution environment. Use server for any rendering, and client for interactions. Create client components inside of server components where you need the interaction. We dropped tRPC and use server actions, but I think there are deeper architectural details before I’d recommend that.
0 reply
0 recast
1 reaction