Passed
Push — master ( aea7d3...cd8e9c )
by Seonkuk
06:06 queued 03:59
created

src/client.js   A

Complexity

Total Complexity 1
Complexity/F 0

Size

Lines of Code 25
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 1
mnd 1
bc 1
fnc 0
bpm 0
cpm 0
noi 0
1
/* global window document */
2
3
import React from 'react';
4
import ReactDOM from 'react-dom';
5
import { AppContainer } from 'react-hot-loader';
6
7
import App from './component/App';
8
import './style/common.scss';
9
10
const appState = window.state;
11
12
ReactDOM.render(
13
  <AppContainer><App {...appState} /></AppContainer>,
14
  document.getElementById('app-main'),
15
);
16
17
if (module.hot) {
18
  module.hot.accept('./component/App', () => {
19
    ReactDOM.render(
20
      (<AppContainer><App {...appState} /></AppContainer>),
21
      document.getElementById('app-main'),
22
    );
23
  });
24
}
25