Created
November 1, 2016 16:21
-
-
Save adnaan/ded1a10c82ea3ed506ff27f1c7e2cde1 to your computer and use it in GitHub Desktop.
popular-products/src/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*@flow*/ | |
import React from 'react'; | |
import { Router, Route } from 'dva/router'; | |
import dva from 'dva'; | |
import App from './App'; | |
import model from './model'; | |
import './index.css'; | |
const app = dva(); | |
app.model(model); | |
app.router(({ history }) => | |
<Router history={history}> | |
<Route path="/" component={App} /> | |
</Router> | |
); | |
app.start('#root'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment