-
- UI Library Button:
-
-
- ,
-);
diff --git a/apps/reactRemoteUI/src/main.ts b/apps/reactRemoteUI/src/main.ts
index b93c7a0268a..73066c5bda0 100644
--- a/apps/reactRemoteUI/src/main.ts
+++ b/apps/reactRemoteUI/src/main.ts
@@ -1 +1,23 @@
-import('./bootstrap');
+import React, { StrictMode } from 'react';
+import * as ReactDOM from 'react-dom/client';
+
+import Button from './Button';
+
+const rootElement = document.getElementById('root');
+if (!rootElement) {
+ throw new Error('Failed to find the root element');
+}
+
+const root = ReactDOM.createRoot(rootElement);
+root.render(
+ React.createElement(
+ StrictMode,
+ null,
+ React.createElement(
+ 'div',
+ null,
+ 'UI Library Button:',
+ React.createElement(Button, null, 'Test Button'),
+ ),
+ ),
+);
diff --git a/apps/reactStorybook/module-federation.config.js b/apps/reactStorybook/module-federation.config.js
index 9de6b4d6504..ceca1379186 100644
--- a/apps/reactStorybook/module-federation.config.js
+++ b/apps/reactStorybook/module-federation.config.js
@@ -1,4 +1,7 @@
module.exports = {
name: 'reactStorybook',
remotes: ['reactRemoteUI'],
+ experiments: {
+ asyncStartup: true,
+ },
};
diff --git a/apps/reactStorybook/src/bootstrap.tsx b/apps/reactStorybook/src/bootstrap.tsx
deleted file mode 100644
index 9124761f39e..00000000000
--- a/apps/reactStorybook/src/bootstrap.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import { StrictMode } from 'react';
-import * as ReactDOM from 'react-dom/client';
-import { BrowserRouter } from 'react-router-dom';
-
-import App from './app/app';
-
-const root = ReactDOM.createRoot(
- document.getElementById('root') as HTMLElement,
-);
-root.render(
-