Usage from client
There are three different ways to execute Server Actions from Client Components. First one is the "direct way", the most simple one, but the least powerful too. The other two are by using useAction
and useOptimisticAction
hooks, which we will cover in the next sections.