Looks like the UI of Azure DevOps has migrated to react and the advice is to use azure-devops-extension-sdk.
Plan is to still use the generated HTML instead of using their components but we need to see how everything works with this SDK.
There are examples in https://github.com/Microsoft/azure-devops-extension-sample