mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-23 23:22:18 +00:00
22 lines
560 B
TypeScript
22 lines
560 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import App from './App';
|
|
|
|
import { ChakraProvider } from '@chakra-ui/react';
|
|
import { Provider } from 'react-redux';
|
|
import { setupStore } from './store';
|
|
import { theme } from './theme';
|
|
|
|
// Private to this file only.
|
|
const store = setupStore();
|
|
|
|
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
|
<React.StrictMode>
|
|
<ChakraProvider theme={theme}>
|
|
<Provider store={store}>
|
|
<App />
|
|
</Provider>
|
|
</ChakraProvider>
|
|
</React.StrictMode>
|
|
);
|