2017-12-17 14:33:04 +01:00
|
|
|
import React from 'react'
|
|
|
|
import { Provider } from 'react-redux'
|
2018-11-18 16:37:33 +01:00
|
|
|
import { ConnectedRouter } from 'connected-react-router'
|
2017-12-17 14:33:04 +01:00
|
|
|
|
|
|
|
export default function Root({ store, history, children }) {
|
|
|
|
return (
|
|
|
|
<Provider store={store}>
|
|
|
|
<ConnectedRouter history={history}>{children}</ConnectedRouter>
|
|
|
|
</Provider>
|
|
|
|
)
|
|
|
|
}
|