Migrating from the old Razor (before 10.20) to the new RazorComponent
Warning
These are old docs.
If you migrate, you should migrate to Custom.Hybrid.Razor14
The RazorComponent was created in v10.20 to provide a newer, cleaner API. To not break existing code, old templates still work, but you must migrate a template to RazorComponent if you wish to use the new features. Here what you need to do: