Chapter 10: Client-Side Logic
For our frontend to work smoothly, efficiently, and with all the necessary capabilities, it's just not enough for us to have a good backend and very well-designed screens.
There is a very powerful feature in frontend development that gives us the ability to work our features down to the smallest detail: Client Actions!
These actions are implemented in a very similar way to server actions but must always be developed considering that they occur on the client side—that is, in the browser. In short, they're implemented in the same way, but the approach is slightly different.
Client Actions can exist at a screen level and a module level.
In this chapter, we will focus on client-side logic and explore the following topics:
- Screen actions
- Data actions
- Client logic actions
- Exercise 6 – creating Client Actions and using them on the frontend
By the end of this chapter, we should be able to implement...