Created
October 29, 2018 10:38
-
-
Save mrzarkovic/0c60f2190578ee5796bb0adbecc82df5 to your computer and use it in GitHub Desktop.
New ES6 class component
This file contains 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
// ES6 + JSX | |
class TitleComponent extends React.Component { | |
render () { | |
return <h1 className="main-title">{this.props.title}</h1>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment