finish most of redux retrofit

This commit is contained in:
41666 2017-12-10 04:26:28 -06:00
parent 52cb96baa3
commit 5899268b22
7 changed files with 64 additions and 17 deletions

View file

@ -6,12 +6,17 @@ import configureStore from './store/configureStore'
import Wrapper from './components/wrapper'
import AppRouter from './router'
import { userInit } from './actions'
const store = configureStore()
window.__APP_STORE__ = store
class App extends Component {
componentWillMount () {
store.dispatch(userInit)
}
render () {
return (
<Provider store={store}>