Take an early look at how to use Server Actions to build fully reusable full stack components – even ones that accept functions as props!
🔗 LINKS
Code from the video: https://github.com/samselikoff/2023-0...
Server Actions docs: https://nextjs.org/docs/app/building-...
🕐 TIMESTAMPS
0:00 – Intro
0:56 – Reusable component + action
4:30 – Exposing an afterSave callback
8:39 – Using revalidatePath instead of redirect
10:34 – Outro
Sur cette page du site, vous pouvez voir la vidéo en ligne Fullstack React Components – with no API durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Sam Selikoff 19 mai 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 13,942 fois et il a aimé 823 téléspectateurs. Bon visionnage!