fix: rendering for 18

This commit is contained in:
Mehmet Salih Yavuz
2025-07-06 15:17:57 +03:00
parent b11ae1ecab
commit 0863d17598

View File

@@ -43,7 +43,7 @@ const emotionCache = createCache({
key: 'menu',
});
const app = (
const App = () => (
// @ts-ignore: emotion types defs are incompatible between core and cache
<CacheProvider value={emotionCache}>
<ThemeProvider theme={theme}>
@@ -63,4 +63,4 @@ const app = (
</CacheProvider>
);
ReactDOM.render(app, document.getElementById('app-menu'));
ReactDOM.render(<App />, document.getElementById('app-menu'));