Skip to content

Instantly share code, notes, and snippets.

@helloanil
Created February 12, 2019 00:48
Show Gist options
  • Select an option

  • Save helloanil/82da2e08fbd362802987c836bb586c5d to your computer and use it in GitHub Desktop.

Select an option

Save helloanil/82da2e08fbd362802987c836bb586c5d to your computer and use it in GitHub Desktop.

Revisions

  1. Anıl Akarsu created this gist Feb 12, 2019.
    31 changes: 31 additions & 0 deletions App.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    import React, { useContext } from 'react';
    import logo from './logo.svg';
    import './App.css';

    import { I18nContext } from './i18n';

    import LanguageSelect from './components/LanguageSelect';

    const App = () => {
    const { translate } = useContext(I18nContext);

    return (
    <div className="App">
    <header className="App-header">
    <img src={logo} className="App-logo" alt="logo" />
    <LanguageSelect />
    <p>{translate('edit_and_save')}</p>
    <a
    className="App-link"
    href="https://reactjs.org"
    target="_blank"
    rel="noopener noreferrer"
    >
    {translate('learn_react')}
    </a>
    </header>
    </div>
    );
    };

    export default App;