Skip to content

Instantly share code, notes, and snippets.

@ayeshN
Created December 10, 2020 10:16
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/b528bc51c34e7a52c75fff7c7a4f913f to your computer and use it in GitHub Desktop.
Save ayeshN/b528bc51c34e7a52c75fff7c7a4f913f to your computer and use it in GitHub Desktop.
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" />
<p>{t("Hi")}</p>
<p>{t("Welcome")}</p>
</header>
</div>
);
};
export default withTranslation()(App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment