logo
Course

Create a Review - Exercise

In the previous exercise, you learned how to create a new Product. In this exercise, you will create a new Review record. ## Exercise 1. Create a new function inside reviews.ts in the /lib/actions directory. 2. Name it createReview and follow the steps from the previous exercise to create a new Review record. 3. Integrate the new function into the components/product/AddReview.tsx file.

The rest of this lesson is waiting.
Join JS Mastery Pro to unlock it.

gsap
javascript
nextjs
react native
threejs

Get Full Access

$149 /month

Lock in a year & save—2 months free!

  • Access to all courses

  • Quizzes, mini-challenges, AI summaries, inline sandboxes

  • Participation in a private community

  • Build real production-grade apps

  • Mock interviews & project reviews

  • Weekly live sessions & member-only access