How to convert it into a reusable component · InterviewLane