Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Blazor WebAssembly

You're reading from  Mastering Blazor WebAssembly

Product type Book
Published in Aug 2023
Publisher Packt
ISBN-13 9781803235103
Pages 370 pages
Edition 1st Edition
Languages
Author (1):
Ahmad Mozaffar Ahmad Mozaffar
Profile icon Ahmad Mozaffar

Table of Contents (21) Chapters

Preface Part 1: Blazor WebAssembly Essentials
Chapter 1: Understanding the Anatomy of a Blazor WebAssembly Project Chapter 2: Components in Blazor Chapter 3: Developing Advanced Components in Blazor Part 2: App Parts and Features
Chapter 4: Navigation and Routing Chapter 5: Capturing User Input with Forms and Validation Chapter 6: Consuming JavaScript in Blazor Chapter 7: Managing Application State Chapter 8: Consuming Web APIs from Blazor WebAssembly Chapter 9: Authenticatiwng and Authorizing Users in Blazor Chapter 10: Handling Errors in Blazor WebAssembly Part 3: Optimization and Deployment
Chapter 11: Giving Your App a Speed Boost Chapter 12: RenderTree in Blazor Chapter 13: Testing Blazor WebAssembly Apps Chapter 14: Publishing Blazor WebAssembly Apps Chapter 15: What’s Next? Index Other Books You May Enjoy

Rendering components dynamically

This section’s heading seems interesting, but haven’t we already seen how to render dynamic stuff in the UI? Well, what’s different here is that the component itself is not dynamic, but its rendering is.

Let’s take a real-world scenario that we usually see in many advanced and big apps (Azure Portal, for example), which have a dashboard that is customizable by the user. This app offers a huge collection of widgets (each widget is a component) and the user can create their own dashboard by choosing which widgets to place on the dashboard page.

There are many solutions for such a scenario. For example, we can store the selected widget names in an array and then iterate over the array in the dashboard page, then make an if statement based on the name of the widget, and render the corresponding component. Actually, this works, but if you think about it, the need for a customizable dashboard means a massive number of widgets...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}