Jul 12, 2024
useFormAction
hook to receive data from the backend.useOptimistic
hook to update the UI immediately.npm install prisma
and initialize with npx prisma init
..env
file.npx prisma db push
.useOptimistic
and useFormAction
hooks.pm2
for production to keep the node process running.