Using Server Actions with onClick={..}
Unanswered
Kangal Shepherd Dog posted this in #help-forum
Kangal Shepherd DogOP
Hello, it works but I wanted to ask
Is calling server action with button onclick in client component good practice or it should be avoided?
Example:
<button onClick={() => myServerAction()} >
Is calling server action with button onclick in client component good practice or it should be avoided?
Example:
<button onClick={() => myServerAction()} >