Lyft Front End Phone Screen

Title Template

[Lyft - [Mid level FE] - [Tech screen]

Questions Asked: [build a component]

January 2026 - I had a phone screen for a mid level front end role. They gave me a gif and a code pen with react and I had to install npm packages and import the correct packages

They asked me to build a component that controls a square on the inside that moves position by clicking one of 4 directions. The tricky part is understanding how to prevent the square from going outside of the boundary