Created
June 26, 2017 07:16
-
-
Save qvil/3065e883091dfa003a3d2c1b96638863 to your computer and use it in GitHub Desktop.
For react-tutorial
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
import React, { Component } from 'react'; | |
class Body extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
number: 1 | |
}; | |
} | |
render() { | |
return ( | |
<div> | |
<h2>Body Props Number : {this.props.number}</h2> | |
<h2>Body State Number : {this.state.number}</h2> | |
</div> | |
); | |
} | |
} | |
export default Body; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment