The docs does not contain an example for the new backoffice, the example posted for v15 is angular js. https://docs.umbraco.com/umbraco-deploy/extending/extending#client-side-registration