+
+ Extension rendering error
+
+ {componentStack + '\n' + error.message}
+
+ );
+ }
+}
+
+export default App;
+```
+
+Please note that your code may slightly differ from the given example depending on the version of the template for generation, but the main logic will be the same.
+
+Keep only the routes required by your extension.
+
+### Extension registration
+
+This logic component `src/aem-assets-contenthub-1/web-src/src/components/ExtensionRegistration.js` registers our extension with Content Hub as soon as it loads, so they can share data and communicate with each other.
+
+```js
+import React from 'react';
+import { Text } from '@adobe/react-spectrum';
+import { register } from '@adobe/uix-guest';
+import { extensionId } from './Constants';
+
+const allowedRepos = ['delivery-p12345-e167890.adobeaemcloud.com'];
+
+function getRepo() {
+ const search = new URLSearchParams(window.location.search);
+ return search.get('repo');
+}
+
+function shouldSkipRegistration(repo) {
+ return !allowedRepos.includes(repo);
+}
+
+function ExtensionRegistration() {
+ const repo = getRepo();
+
+ if (shouldSkipRegistration(repo)) {
+ return