Summary
Throughout this chapter, we have discovered various aspects of Blazor components, including how to create them using Razor syntax. We have also written our first component and learned how we can pass data between our components from parents to children and vice versa using parameters, cascading parameters, and EventCallbacks.
We also understood the life cycle events of each Blazor component, which are helpful to execute some logic in certain stages in the component’s lifetime. Finally, we walked through the available ways to write our project’s CSS, and saw how Blazor handles things behind the scenes for isolated CSS.
By now, you should be able to do the following:
- Create and use a Blazor component
- Pass data between components and across the components hierarchy
- Leverage the component life cycle events and react to certain changes within the component lifetime in the app
- Style your components and learn the different ways to deal with...