Skip to content

Instantly share code, notes, and snippets.

@ayeshN
Created December 10, 2020 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayeshN/1e8377aa795e5e524b0bdd1ad28c7a92 to your computer and use it in GitHub Desktop.
Save ayeshN/1e8377aa795e5e524b0bdd1ad28c7a92 to your computer and use it in GitHub Desktop.
Modified App.js
import logo from "./logo.svg";
import "./App.css";
import { withTranslation } from "react-i18next";
const App = (props) => {
const { t } = props;
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
</header>
</div>
);
};
export default withTranslation()(App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment