@samitouri / QOS-React-2 / commits / 0475834470

fix all links to point to /react as root

Cheng Lou committed Oct 6, 2013 at 20:26 UTC 0475834470e1acac60b6f16c0f82f0e1f4cfc20f
11 files changed +11 -11
docs/cookbook/cb-01-introduction.md
+1 -1
@@ -5,7 +5,7 @@ layout: docs
5 permalink: introduction.html
6 ---
7
8 -The React.js cookbook provides solutions for common questions asked when working with the React framework. It's written in the [cookbook format](http://shop.oreilly.com/category/series/cookbooks.do) commonly used by O'Reilly Media. See [Inline Styles](inline-styles.html) recipe as an example.
8 +The React.js cookbook provides solutions for common questions asked when working with the React framework. It's written in the [cookbook format](http://shop.oreilly.com/category/series/cookbooks.do) commonly used by O'Reilly Media. See [Inline Styles](/react/docs/cookbook/inline-styles.html) recipe as an example.
9
10 ### Contributing
11
docs/cookbook/cb-03-if-else-in-JSX tip.md
+1 -1
@@ -26,4 +26,4 @@ What you're searching for is ternary expression:
26 React.renderComponent(<div id={true ? 'msg' : ''}>Hello World!</div>, mountNode);
27 ```
28
29 -Try the [JSX compiler](http://facebook.github.io/react/jsx-compiler.html).
29 +Try the [JSX compiler](/react/jsx-compiler.html).
docs/cookbook/cb-03-if-else-in-JSX.md
+1 -1
@@ -31,4 +31,4 @@ React.renderComponent(<div id={true ? 'msg' : ''}>Hello World!</div>, mountNode)
31 ```
32
33 ### Discussion
34 -Try the [JSX compiler](http://facebook.github.io/react/jsx-compiler.html).
34 +Try the [JSX compiler](react/jsx-compiler.html).
docs/cookbook/cb-06-style-prop-value-px tip.md
+1 -1
@@ -14,7 +14,7 @@ var divStyle = {height: 10}; // rendered as "height:10px"
14 React.renderComponent(<div style={divStyle}>Hello World!</div>, mountNode);
15 ```
16
17 -See [Inline Styles](inline-styles-tip.html) for more info.
17 +See [Inline Styles](/react/docs/cookbook/inline-styles-tip.html) for more info.
18
19 Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix:
20
docs/cookbook/cb-06-style-prop-value-px.md
+1 -1
@@ -19,7 +19,7 @@ React.renderComponent(<div style={divStyle}>Hello World!</div>, mountNode);
19 ```
20
21 ### Discussion
22 -See [Inline Styles](inline-styles.html) for more info.
22 +See [Inline Styles](/react/docs/cookbook/inline-styles.html) for more info.
23
24 Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix:
25
docs/cookbook/cb-08-controlled-input-null-value tip.md
+1 -1
@@ -5,7 +5,7 @@ layout: docs
5 permalink: controlled-input-null-value-tip.html
6 ---
7
8 -Specifying the `value` prop on a [controlled component](forms.html) prevents the user from changing the input unless you desire so.
8 +Specifying the `value` prop on a [controlled component](/react/docs/cookbook/forms.html) prevents the user from changing the input unless you desire so.
9
10 You might have run into a problem where `value` is specified, but the input can still be changed without consent. In this case, you might have accidentally set `value` to `undefined` or `null`.
11
docs/cookbook/cb-08-controlled-input-null-value.md
+1 -1
@@ -6,7 +6,7 @@ permalink: controlled-input-null-value.html
6 ---
7
8 ### Problem
9 -You specified a `value` parameter for your form input, but the input value can still be modified, contrary to [what you'd expect](forms.html).
9 +You specified a `value` parameter for your form input, but the input value can still be modified, contrary to [what you'd expect](/react/docs/cookbook/forms.html).
10
11 ### Solution
12 You might have accidentally set `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text becomes editable.
docs/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting-tip.md
+1 -1
@@ -5,6 +5,6 @@ layout: docs
5 permalink: componentWillReceiveProps-not-triggered-after-mounting-tip.html
6 ---
7
8 -`componentWillReceiveProps` isn't triggered after the node is put on scene. This is by design. Check out [other lifecycle methods](component-specs.html) for the one that suits your needs.
8 +`componentWillReceiveProps` isn't triggered after the node is put on scene. This is by design. Check out [other lifecycle methods](/react/docs/cookbook/component-specs.html) for the one that suits your needs.
9
10 The reason for that is because `componentWillReceiveProps` often handles the logic of comparing with the old props and acting upon changes; not triggering it at mounting (where there are no old props) helps in defining what the method does.
docs/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting.md
+1 -1
@@ -9,7 +9,7 @@ permalink: componentWillReceiveProps-not-triggered-after-mounting.html
9 `componentWillReceiveProps` isn't triggered after the node is put on scene.
10
11 ### Solution
12 -This is by design. Check out [other lifecycle methods](component-specs.html) for the one that suits your needs.
12 +This is by design. Check out [other lifecycle methods](/react/docs/cookbook/component-specs.html) for the one that suits your needs.
13
14 ### Discussion
15 `componentWillReceiveProps` often handles the logic of comparing with the old props and acting upon changes; not triggering it at mounting (where there are no old props) helps in defining what the method does.
docs/cookbook/cb-11-dom-event-listeners tip.md
+1 -1
@@ -7,7 +7,7 @@ permalink: dom-event-listeners-tip.html
7
8 > Note:
9 >
10 -> This entry shows how to attach DOM events not provided by React ([check here for more info](events.html)). This is good for integrations with other libraries such as jQuery.
10 +> This entry shows how to attach DOM events not provided by React ([check here for more info](/react/docs/cookbook/events.html)). This is good for integrations with other libraries such as jQuery.
11
12 This example displays the window width:
13
docs/cookbook/cb-11-dom-event-listeners.md
+1 -1
@@ -11,7 +11,7 @@ You want to listen to an event inside a component.
11 ### Solution
12 > Note:
13 >
14 -> This entry shows how to attach DOM events not provided by React ([check here for more info](events.html)). This is good for integrations with other libraries such as jQuery.
14 +> This entry shows how to attach DOM events not provided by React ([check here for more info](/react/docs/cookbook/events.html)). This is good for integrations with other libraries such as jQuery.
15
16 This example displays the window width:
17