Whenever you're ready, walk me through how you'd approach this.
Explain the component lifecycle in your preferred framework (for example, React, Angular, or Vue).