um-react/src/main.tsx

22 lines
560 B
TypeScript
Raw Normal View History

2023-05-07 19:11:16 +00:00
import React from 'react';
import ReactDOM from 'react-dom/client';
2023-05-07 22:29:37 +00:00
import App from './App';
2023-05-07 19:11:16 +00:00
import { ChakraProvider } from '@chakra-ui/react';
2023-05-07 22:29:37 +00:00
import { Provider } from 'react-redux';
import { setupStore } from './store';
2023-05-07 22:29:37 +00:00
import { theme } from './theme';
2023-05-07 19:11:16 +00:00
// Private to this file only.
const store = setupStore();
2023-05-07 19:11:16 +00:00
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
2023-05-07 22:29:37 +00:00
<ChakraProvider theme={theme}>
<Provider store={store}>
<App />
</Provider>
2023-05-07 19:11:16 +00:00
</ChakraProvider>
</React.StrictMode>
);