Update react.js cheatsheet.
This commit is contained in:
parent
617b0f51a5
commit
60b8d0b039
|
@ -137,7 +137,7 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
.pages a {
|
.pages a {
|
||||||
font-weight: bold;
|
font-weight: 400;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 15px 15px 15px 0;
|
padding: 15px 15px 15px 0;
|
||||||
border-top: solid 1px rgba(0, 0, 0, 0.05);
|
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({
|
React.createClass({
|
||||||
mixins: [React.addons.LinkedStateMixin],
|
mixins: [React.addons.LinkedStateMixin],
|
||||||
|
@ -117,8 +116,6 @@ layout: default
|
||||||
// LinkedStateMixin adds a method to your React component called
|
// LinkedStateMixin adds a method to your React component called
|
||||||
// linkState().
|
// linkState().
|
||||||
|
|
||||||
http://facebook.github.io/react/docs/two-way-binding-helpers.html
|
|
||||||
|
|
||||||
### Lists
|
### Lists
|
||||||
|
|
||||||
var TodoList = React.createClass({
|
var TodoList = React.createClass({
|
||||||
|
@ -154,6 +151,7 @@ http://facebook.github.io/react/docs/two-way-binding-helpers.html
|
||||||
});
|
});
|
||||||
|
|
||||||
### Mixins
|
### Mixins
|
||||||
|
|
||||||
var TickTock = React.createClass({
|
var TickTock = React.createClass({
|
||||||
mixins: [SetIntervalMixin]
|
mixins: [SetIntervalMixin]
|
||||||
}
|
}
|
||||||
|
@ -162,8 +160,6 @@ http://facebook.github.io/react/docs/two-way-binding-helpers.html
|
||||||
componentWillMount: function() { .. }
|
componentWillMount: function() { .. }
|
||||||
}
|
}
|
||||||
|
|
||||||
### Reusable components
|
### [Reusable components](http://facebook.github.io/react/docs/reusable-components.html)
|
||||||
|
|
||||||
http://facebook.github.io/react/docs/reusable-components.html
|
|
||||||
|
|
||||||
* Prop validation
|
* Prop validation
|
||||||
|
|
Loading…
Reference in New Issue