diff --git a/examples/index.jsx b/examples/index.jsx
index 0a4cf74..0128b9c 100644
--- a/examples/index.jsx
+++ b/examples/index.jsx
@@ -1,20 +1,13 @@
-import React from 'react'
-import ReactDOM from 'react-dom'
-import { AppContainer } from 'react-hot-loader'
-import App from './App'
+import React from 'react';
+import { createRoot } from 'react-dom/client';
+import App from './App';
-const render = Component => {
- ReactDOM.render(
-
-
- ,
- document.getElementById('app'),
- )
-}
+const rootElement = document.getElementById('app');
+if (!rootElement) throw new Error("Root element not found");
-render(App)
-
-// Webpack Hot Module Replacement API
-if (module.hot) {
- module.hot.accept('./App', () => { render(App) })
-}
+const root = createRoot(rootElement);
+root.render(
+
+
+
+);
\ No newline at end of file