Hello and welcome to the 3rd part of Let's Build a MySQL Node.js CRUD App series! In the previous article, we have implemented all our GET, POST, PUT and DELETE routes in our server. If you haven't read the previous article, please find it here. In...

Markdown supported · ⌘↵ to post
Very helpful, I read two books about express js to make CRUD app, but they did not help. However, this article fastly taught me all about it.
Hello, I am a new learner, So I have a question about step 3 create reviews. I followed your code but it gives an error with const { register, handleSubmit }, please can you write the return form code?
I see one little problem with useState and }, [reviews]). This generates continuos requests to api by getReviews function. Try put console.log inside that function. I saw the same problem in other similar articles. IMO better is let useState has empty [ ], and call getReviews function from each components that make change to database. End effect is the same and there is no unnecessary api requests.
Oybek Akhmadjonov
Student
Is there a GitHub link?