improve developer experience in client component and server action #64780
Unanswered
ibrahimkeyboad
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an idea, how about putting server action in the folder called action and a client component in the components folder instead of writing "use client" and "use server".
Use client it should be activated by default when someone is used in the components folder and server action and same. this will help increase the developer experience and typos and infer the DRY principle
Beta Was this translation helpful? Give feedback.
All reactions