Next.js Discord

Discord Forum

Inline use client

Answered
Cimarrón Uruguayo posted this in #help-forum
Open in Discord
Cimarrón UruguayoOP
Why is 'use server' the only inline directive supported so far? Why not have 'use client' inline support as well? At the moment you would need to create an entirely separate file just to specify that it requires CSR.
Answered by joulev
technical limitations in react's side. and since react doesnt support inline "use client", next cant do anything to support it
View full answer

2 Replies

because use server is not the same as use client just for the client
Answer