{"size": 887, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "Perspicere/PerspicereMagazine", "max_stars_repo_stars_event_min_datetime": "2017-11-12T10:56:22.000Z", "max_stars_repo_stars_event_max_datetime": "2018-01-31T21:35:40.000Z", "max_issues_repo_path": "src/index.js", "max_issues_repo_name": "Perspicere/PerspicereMagazine", "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": "Perspicere/PerspicereMagazine", "max_forks_repo_forks_event_min_datetime": "2017-11-12T07:44:37.000Z", "max_forks_repo_forks_event_max_datetime": "2017-11-12T07:44:37.000Z"}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 27.71875, "max_line_length": 96, "alphanum_fraction": 0.6888387824}
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { BrowserRouter, Route } from 'react-router-dom'

import './index.css'
import registerServiceWorker from './registerServiceWorker'

import store from './store'

// todo 组件数目若太多改为按需加载？
import Home from './pages/home'
import About from './pages/about'
import Articles from './pages/articles'

// production public url
const baseUrl = process.env.PUBLIC_URL

ReactDOM.render(
  <Provider store={store}>
    <BrowserRouter>
      <div>
        <Route path={baseUrl + '/'} component={Home} exact={true} />
        <Route path={baseUrl + '/about'} component={About} exact={true} />
        <Route path={baseUrl + '/:module/:column/:article'} component={Articles} exact={true} />
      </div>
    </BrowserRouter>
  </Provider>,
  document.getElementById('root')
)
registerServiceWorker()
