SoFi·Frontend Engineer·Technical Phone Screen
- Build a React component that takes loan amount, interest rate, and term as inputs, computes monthly payment and total interest in real time, and renders the results. The implementation should cover form interaction, styling, calculation logic, and accessibility including labels, ARIA attributes, and keyboard support.
- How would you debounce the recalculation so rapid input changes don't trigger it on every keystroke, and cache results for previously seen combinations of loan amount, rate, and term?
“The math part was fine, standard amortization formula.”