Created
April 7, 2015 20:09
-
-
Save nonsensery/11aa5a372f6f052a330d to your computer and use it in GitHub Desktop.
React Component Experiments
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 Post extends React.Component { | |
render() { | |
return ( | |
<article> | |
<h2>{this.props.title}</h2> | |
<section>{this.props.children}</section> | |
</article> | |
); | |
} | |
} |
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
// Don't do this, BTW. | |
new Post({}).render(); | |
// => ReactElement { type: "article", … } |
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 MyApp extends React.Component { | |
render() { | |
return ( | |
<div> | |
<h1>My Cool App</h1> | |
<Post title="Welcome"> | |
<p>Hello There!</p> | |
</Post> | |
</div> | |
); | |
} | |
} |
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
// Don't do this either, FYI. | |
new MyApp().render().props.children[1]; | |
// => ReactElement { type: function Post(…) {}, … } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tank you.
https://gist.github.com/damlaofis/3440e960c621a02645d1
http://konferansinemakoltugu.com/
http://ucuzofiskoltuklari.com/
http://www.damlaofis.com.tr/
http://www.ofismakamkoltuklari.com/
http://www.ofiskanepesi.com/
http://www.celikdosyadolabi.com/