Anonymous · shared experience1 Oct 2025 · 5 views
Rakuten: Traffic light component with a timed cycle
Problem. Build a traffic signal component in React with TypeScript.
Rules given.
- The lights switch every 2 seconds.
- After each 6 seconds of switching, pause for 4 seconds, then repeat.
- Clicking any light restarts the cycle from that light.
What it tests. Managing timers in effects, cleaning them up, and resetting state on a click without leaking intervals.
Context. First round for an early-career React and Node.js role, followed by rapid-fire resume questions and a small SQL task.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.