Last active
February 15, 2019 22:34
-
-
Save rafaelrozon/3c1accb402d4f5dc814451e70603888e to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
import { Provider } from 'react-redux'; | |
import { BrowserRouter as Router } from 'react-router-dom'; | |
import { I18nextProvider } from 'react-i18next'; | |
import { store } from '../store'; | |
import { trans } from '../translations'; | |
export default class AppProvider extends React.Component { | |
render() { | |
const { children } = this.props; | |
return ( | |
<I18nextProvider i18n={ trans }> | |
<Provider store={store}> | |
<Router> | |
{children} | |
</Router> | |
</Provider> | |
</I18nextProvider> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment