{"size": 870, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "SunHuawei/inferno-hn", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/index.js", "max_issues_repo_name": "SunHuawei/inferno-hn", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/index.js", "max_forks_repo_name": "SunHuawei/inferno-hn", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.5135135135, "max_line_length": 64, "alphanum_fraction": 0.6390804598}
// inferno module
import {render} from 'inferno';

// routing modules
import { Router, Route } from 'inferno-router';
import createBrowserHistory from 'history/createBrowserHistory';

// app components
import App from './App';
import TopNews from './TopNews';
import Jobs from './Jobs';

if (module.hot) {
    require('inferno-devtools');
}

const browserHistory = createBrowserHistory();

const routes = (
	<Router history={ browserHistory }>
		<Route component={ App }>
            <Route path="/" component={ TopNews } />
            <Route path="/news" component={ TopNews } />
            <Route path="/news/:page" component={ TopNews } />
            <Route path="/jobs" component={ Jobs } />
			<Route path="/jobs/:page" component={ Jobs } />
		</Route>
	</Router>
);

render(routes, document.getElementById('app'));

if (module.hot) {
    module.hot.accept()
}

