Created
September 2, 2015 01:56
-
-
Save humaan/c84dcda054212aa4e48f 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 | |
import React from 'react'; | |
// Create class called HelloText that extends the base React Component class | |
export default class HelloText extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return <p>Hello, {this.props.name}!</p> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment