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
After user interaction
Change in database
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
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
After user interaction
Change in database
Types of changes
Checklist: