In task 5 of our side project, we integrated the User
and Organization
models into our application. Now, in this task, we will implement the
functionality for users to upvote and downvote posts and necessary tests.
Task 6
- In the task listing page, modify the post card component to feature an upvote
button, a downvote button and a net vote count. The net vote count should have
a value of
upvotes
- downvotes
and must dynamically change when a user
clicks on the upvote or downvote button. Make sure the upvotes and downvotes
values change on the Rails' side as well.