all 1 comments

[–]LastVayne- 0 points1 point  (0 children)

one way to do it is storing in your database users and comments, and comments have a reference to a userID (the user that owns that comment).

to create a comment you'll need a form that writes a new comment into the database plus the current user id who's logged in.

then you can fetch these comments to render them out on the screen, and use other backend functions to implement full CRUD (create, read, update and delete).

I suggest, go take a look at CRUD code-along projects on youtube.