Smarsh interview question

System design and React life cycle method