FrontEnd Interview Question | Build UI using ReactBuild a traffic light
Build a traffic light where the lights switch from green to yellow to red after predetermined intervals and loop indefinitely.
Build a traffic light where the lights switch from green to yellow to red after predetermined intervals and loop indefinitely. Each light should be lit for the following durations:Red light: 4000msYellow light: 500msGreen light: 3000ms
Solution - https://lnkd.in/g2qD65qn