Update react.js cheatsheet.

This commit is contained in:
Rico Sta. Cruz 2014-06-07 23:19:25 +08:00
parent 617b0f51a5
commit 60b8d0b039
2 changed files with 4 additions and 8 deletions

View File

@ -137,7 +137,7 @@ pre {
}
.pages a {
font-weight: bold;
font-weight: 400;
display: block;
padding: 15px 15px 15px 0;
border-top: solid 1px rgba(0, 0, 0, 0.05);

View File

@ -102,8 +102,7 @@ layout: default
}
})
### Two-way binding
### [Two-way binding](http://facebook.github.io/react/docs/two-way-binding-helpers.html)
React.createClass({
mixins: [React.addons.LinkedStateMixin],
@ -117,8 +116,6 @@ layout: default
// LinkedStateMixin adds a method to your React component called
// linkState().
http://facebook.github.io/react/docs/two-way-binding-helpers.html
### Lists
var TodoList = React.createClass({
@ -154,6 +151,7 @@ http://facebook.github.io/react/docs/two-way-binding-helpers.html
});
### Mixins
var TickTock = React.createClass({
mixins: [SetIntervalMixin]
}
@ -162,8 +160,6 @@ http://facebook.github.io/react/docs/two-way-binding-helpers.html
componentWillMount: function() { .. }
}
### Reusable components
http://facebook.github.io/react/docs/reusable-components.html
### [Reusable components](http://facebook.github.io/react/docs/reusable-components.html)
* Prop validation