Slide 22
Slide 22 text
var MyComponent = React.createClass({
!
propTypes: {},
getDefaultProps: function () {},
getInitialState: function () {},
!
componentWillMount: function () {},
componentWillUnmount: function () {},
...
render: function () {
// only read props & state -> return UI
},
});