Last active
July 20, 2017 08:10
-
-
Save arifkoken/3ead3381b715eec25c3418c8cf3e382c to your computer and use it in GitHub Desktop.
Props Sample
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
class Kisi extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return <div>Merhaba {this.props.isim}</div> | |
} | |
} | |
class Selamlama extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return <div> | |
<Kisi isim="Arif"/> | |
<br/> | |
<Kisi isim="Umut"/> | |
</div> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment