Explain the lifecycle of a component in your primary mobile framework and how you use it to manage state at TeachMint Technologies.