Closed tyin363 closed 3 months ago
Good job, Tony! The PR is ready to be merged. It addresses the issue of multiple QuestionComponent instances being rendered by correctly using the key prop for proper re-rendering. The solution is effective and well-tested, confirming that only one question is displayed at a time.
Context
The issue arises when the "Next Question" button is clicked on the Interview Practice page, causing multiple instances of the QuestionComponent to be rendered on the screen. This bug affects the user experience by displaying multiple questions at once instead of transitioning to a new question.
Closes: #43
What Changed?
Fixed the issue where the QuestionComponent was duplicated by ensuring that only one instance of the component is rendered at a time. The key prop in the QuestionComponent was adjusted to ensure proper re-rendering of components without duplication.
How To Review
Testing
Risks
N/A
Notes
N/A