Component Life Cycle Hooks
摘要
A Blazor component has a life cycle just like any other .NET object. A component is born, goes through a couple of changes, and then dies. A Blazor component has _life cycle methods_ you can override to capture the life cycle of the component. In this chapter, we will look at these life cycle hooks because it's very important to understand them well. Putting code in the wrong life cycle hook will likely break your component.