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 Dispatcher = require('flux').Dispatcher; | |
module.exports = new Dispatcher(); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Demo App</title> | |
</head> | |
<body> | |
<section id="react"></section> | |
<script src="js/bundle.js"></script> | |
</body> |
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 React = require('react'); | |
var Col = require('react-bootstrap/lib/Col'); | |
var Thumbnail = require('react-bootstrap/lib/Thumbnail'); | |
var Button = require('react-bootstrap/lib/Button'); | |
var Body = React.createClass({ | |
getDefaultProps: function() { | |
return { | |
reactLogo: "http://tinyurl.com/pd5ttp3", | |
jsLogo: "http://tinyurl.com/olm5u5m" |
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 React = require('react'); | |
var Body = React.createClass({ | |
render: function() { | |
return ( | |
<div style={{ "textAlign": "center", "paddingTop": "70px" }}> | |
<h1>Welcome to the Demo React App!</h1> | |
<img src="http://tinyurl.com/pd5ttp3" alt="react-logo" /> | |
</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
var React = require('react'); | |
var Navbar = require('react-bootstrap/lib/Navbar'); | |
var Nav = require('react-bootstrap/lib/Nav'); | |
var NavItem = require('react-bootstrap/lib/NavItem'); | |
var Header = React.createClass({ | |
render: function() { | |
return ( | |
<Navbar fixedTop brand='Demo App'> | |
<Nav right> |
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 React = require('react'); | |
var HomePage = React.createClass({ | |
render: function() { | |
return ( | |
<div> | |
<h1>Hello, world!</h1> | |
</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
var React = require('react'); | |
var HomePage = require('./components/home_page'); | |
React.render( | |
<HomePage />, | |
document.getElementById('react') | |
); |
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 React = require('react'); | |
React.render( | |
<div> | |
<h1>Hello, world!</h1> | |
</div>, | |
document.getElementById('react') | |
); |
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 React = require('react'); | |
var Header = require('./header'); | |
var Body = require('./body'); | |
var Footer = require('./footer'); | |
var HomePage = React.createClass({ | |
render: function() { | |
return ( | |
<div> | |
<Header /> |
NewerOlder