Created
November 14, 2019 12:26
-
-
Save theodesp/ca46cfa7c1317fe1cdb124b305fa2d07 to your computer and use it in GitHub Desktop.
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, {Component} from 'react'; | |
import {FormattedMessage} from 'react-intl'; | |
import logo from './logo.svg' | |
import './Home.css'; | |
class Home extends Component { | |
render() { | |
return ( | |
<div className="Home"> | |
<div className="Home-header"> | |
<img src={logo} className="Home-logo" alt="logo"/> | |
<h2><FormattedMessage id="home.welcome" values={{name: 'React.js'}}/></h2> | |
</div> | |
<div className="Home-container"> | |
<div className="Home-items"> | |
<div className="Home-item"> | |
<h3 className="focus"> | |
<FormattedMessage id="home.declarative"/></h3> | |
<div><p><FormattedMessage id="home.declarative.p1" values={{name: <i>React</i>}}/></p> | |
<p><FormattedMessage id="home.declarative.p2"/></p> | |
</div> | |
</div> | |
<div className="Home-item"> | |
<h3 className="focus"><FormattedMessage id="home.component-based"/></h3> | |
<div> | |
<p><FormattedMessage id="home.component-based.p1"/></p> | |
<p><FormattedMessage id="home.component-based.p2"/></p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
); | |
} | |
} | |
export default Home; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment