Created
February 12, 2019 00:26
-
-
Save helloanil/cf77dff3d176f44a75100c3a65b3a188 to your computer and use it in GitHub Desktop.
CRA-I18N index.js
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 ReactDOM from "react-dom"; | |
import "./index.css"; | |
import App from "./App"; | |
import * as serviceWorker from "./serviceWorker"; | |
import { I18nContextProvider } from "./i18n"; | |
// Nothing fancy, just wrap the App | |
ReactDOM.render( | |
<I18nContextProvider> | |
<App /> | |
</I18nContextProvider>, | |
document.getElementById("root"), | |
); | |
// If you want your app to work offline and load faster, you can change | |
// unregister() to register() below. Note this comes with some pitfalls. | |
// Learn more about service workers: http://bit.ly/CRA-PWA | |
serviceWorker.unregister(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment