Inline use client
Answered
Cimarrón Uruguayo posted this in #help-forum
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
2 Replies
because
use server is not the same as use client just for the client@Cimarrón Uruguayo 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.
technical limitations in react's side. and since react doesnt support inline "use client", next cant do anything to support it
Answer