FitTrackee/mpwo_client/src/components/Root.jsx
SamR1 166cbd201a Client: handling Link w/o page refresh
need to update "react-router-redux" to "^5.0.0-alpha.9" to avoid errors (undefined ConnectedRouter)
2017-12-17 14:39:49 +01:00

12 lines
312 B
JavaScript

import React from 'react'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
export default function Root({ store, history, children }) {
return (
<Provider store={store}>
<ConnectedRouter history={history}>{children}</ConnectedRouter>
</Provider>
)
}