c2siorg / Codelabz

Codelabz
Apache License 2.0
11 stars 51 forks source link

Added upvote and downvote feature by integrating with firebase in which also store uid of user #56

Open Shubh942 opened 6 months ago

Shubh942 commented 6 months ago

Added upvote and downvote feature by integrating with firebase in which also store uid of user

Description

Implementing a reducer function facilitates seamless interaction with the database, enabling efficient handling of upvote and downvote events.

Related Issue

55

Motivation and Context

To enhance user experience, it's imperative to store every user action in the database, particularly upvotes and downvotes, as they provide valuable insights into the perceived value of comments.

Screenshots or GIF (In case of UI changes):

At first vote count is 1 image

After user interaction image

Change in database image

Upvoters count increases.

Types of changes

Checklist: