aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
blob: 26cf26f6049428b0c355b1e4ce9a89b40d8305e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React, { lazy, Suspense } from 'react';
import ReactDOM from 'react-dom';

import './index.css';

function LoadingView(props) {
    return (
        <div id="content">
            <div className="lds-ripple"><div></div><div></div></div>
        </div>
    );
}

const Juick = lazy(() => import('./App'));

const JuickApp = () => (
    <React.StrictMode>
        <Suspense fallback={LoadingView()}>
            <Juick />
        </Suspense>
    </React.StrictMode>
);

ReactDOM.render(<JuickApp />, document.getElementById('wrapper'));