Update react.js cheatsheet.
This commit is contained in:
parent
617b0f51a5
commit
60b8d0b039
|
@ -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);
|
||||
|
|
10
react.md
10
react.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue