Mafinar Rashid Khan
Product Manager
Panacea Systems Limited
@mafinar
i.e f(x) = 2*x + 1, what's f(1) kinda stuff??
var MyComponent = React.createClass({
propTypes: {
children: React.PropTypes.element.isRequired
},
render: function() {
return (
<div>
{this.props.children} // This must be exactly one element or it will throw.
</div>
);
}
});
Sorta
Back to the Board...
- Count Lestat, Interview with the Vampire
Basically forgetting about assignments and those little boxes holding values, you play pillow passing with values, values that never change.
Getters
Stores
Actions
ActionType
Components
Dispatch