1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-20 03:59:36 +02:00
flame/client/src/index.tsx

17 lines
459 B
TypeScript
Raw Normal View History

2021-05-06 19:03:31 +02:00
import './index.css';
import React from 'react';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import { App } from './App';
import { store } from './store/store';
2021-05-06 19:03:31 +02:00
const container = document.getElementById('root');
const root = createRoot(container!); // createRoot(container!) if you use TypeScript
root.render(
2021-05-06 19:03:31 +02:00
<React.StrictMode>
<Provider store={store}>
<App />
</Provider>
</React.StrictMode>);