Created
March 26, 2018 13:24
-
-
Save mrzarkovic/867112ce445230ee61ff8581157e5000 to your computer and use it in GitHub Desktop.
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
var Navbar = React.createClass({ | |
render: function () { | |
return ( | |
<div> | |
This is navbar | |
</div> | |
); | |
} | |
}); | |
var Content = React.createClass({ | |
render: function () { | |
return ( | |
<div> | |
This is content: {this.props.text} | |
</div> | |
); | |
} | |
}); | |
var App = React.createClass({ | |
render: function () { | |
return ( | |
<div> | |
<Navbar /> | |
<Content text="Hello" /> | |
</div> | |
); | |
} | |
}); | |
ReactDOM.render(<App />, document.getElementById('app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment