Skip to content

Instantly share code, notes, and snippets.

@darde
Created August 7, 2018 18:50
Show Gist options
  • Save darde/25994baa7a37c039aa976a69a6515510 to your computer and use it in GitHub Desktop.
Save darde/25994baa7a37c039aa976a69a6515510 to your computer and use it in GitHub Desktop.
react-i18next-example/src/App.js
import React from 'react';
import AppProvider from './components/context/AppProvider';
import { I18nextProvider } from 'react-i18next';
import i18n from './i18n';
import Router from './components/Router';
import Toolbar from './components/Toolbar';
import './styles/styles.css';
const App = () => (
<div className='wrapper'>
<I18nextProvider i18n={i18n}>
<AppProvider>
<Toolbar />
<Router />
</AppProvider>
</I18nextProvider>
</div>
);
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment