Question d’entretien chez ServiceTitan

Given React boilerplate code, fix and optimize the code