In this video, we solve a common Frontend / React interview question: Progress Bar I.
The challenge is simple: every time you click the Add button, a new progress bar should appear and immediately start progressing from 0% to 100% in roughly 2 seconds.
The important part? Every progress bar must animate independently without affecting the others.
We’ll build the solution using React, React Hooks, and CSS transitions, while keeping the animation fire-and-forget.
Problem Requirements
Add a new progress bar on every click
Start each bar at 0%
Start animation immediately
Reach 100% in approximately 2 seconds
Animate every bar independently
Use CSS transitions
Previously created bars must continue independently
Concepts Covered
React
React Hooks
useState
useEffect
CSS Transitions
Component design
Independent animations
Frontend interview problem solving
React interview preparation
If you're preparing for **Frontend Engineer, React Developer, or SDE interviews**, this type of machine-coding question is worth practicing.
More React and JavaScript frontend interview questions coming soon.
#reactjs #frontendinterview #react #javascript #webdevelopment