← Return

Code Review FeedbackMedium

Your task is to create a React application called "Code Review Feedback" that tracks and manages feedback on various aspects of code quality. The component should have upvote and downvote functionality for each aspect, and it must meet all specified requirements.

Detailed Requirements

  1. The CodeReviewFeedback component displays five aspects: Readability, Performance, Security, Documentation, and Testing.
  2. Each aspect has two buttons labeled "Upvote" and "Downvote" to allow users to vote.
  3. The initial count for upvotes and downvotes for each aspect is set to zero.
  4. Clicking the "Upvote" button should increment the upvote count for that aspect by 1.
  5. Clicking the "Downvote" button should increment the downvote count for that aspect by 1.
  6. Ensure the counts update in the UI immediately upon clicking.

The component should have a subtle animation when the voting count is updated to enhance the user experience.