Why Use Server Actions?
I can see the benefit of the server component version. Colocated, no need to make an api endpoint in another file.
But isn't the client component version just another way of writing API endpoints?
Guess you can use it in form without javascript:
But using it this way feels sucky as there is no way (that I know of) to make it typesafe.
But isn't the client component version just another way of writing API endpoints?
Guess you can use it in form without javascript:
But using it this way feels sucky as there is no way (that I know of) to make it typesafe.