aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
blob: 1180d303c750e891ed43b546798ca675beb6391c (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
25
26
27
28
29
30
31
32
33
34
35
import React from 'react';
import ReactDOM from 'react-dom';
import Loadable from 'react-loadable';

function LoadingView(props) {
  return (
    <div id="body">
      <div id="header">
        <div id="header_wrapper">
          <div id="logo">
            <a href="/">Juick</a>
          </div>
          <div id="search">
            <form>
              <input name="search" className="text" placeholder="Search..." />
            </form>
          </div>
          <nav id="global"></nav>
        </div>
      </div>
      <div id="wrapper"></div>
    </div>
  );
}

const Juick = Loadable({
  loader: () => import('./App'),
  loading: LoadingView
});

const JuickApp = () => (
  <Juick />
);

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