-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.js
32 lines (27 loc) · 866 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { createRoot } from 'react-dom/client';
import FlagProvider from '@unleash/proxy-client-react';
import { Provider } from 'react-redux';
import App from './App';
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'font-awesome/css/font-awesome.min.css';
import 'highlight.js/styles/github.css';
import './index.css';
import store from './store/index';
import { UNLEASH_CONFIG } from './constants';
const container = document.getElementById('root');
const root = createRoot(container);
root.render(
<FlagProvider config={UNLEASH_CONFIG}>
<Provider store={store}>
<App />
</Provider>
</FlagProvider>
);