c2siorg / Codelabz

Codelabz
Apache License 2.0
12 stars 51 forks source link

feature added #132

Open soham2312 opened 6 months ago

soham2312 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

131

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 1

After user interaction 2

Change in database 3

Types of changes

Checklist: