From 60b8d0b039772b4871d3ddf76d19398a6849f3f2 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sat, 7 Jun 2014 23:19:25 +0800 Subject: [PATCH] Update react.js cheatsheet. --- assets/style.css | 2 +- react.md | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/assets/style.css b/assets/style.css index f2b68ff50..39b090644 100644 --- a/assets/style.css +++ b/assets/style.css @@ -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); diff --git a/react.md b/react.md index 9b2bdb63f..716b09a55 100644 --- a/react.md +++ b/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