From 015eda5260335c4d71f04033d1357c967e0e8f1f Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Sun, 6 Oct 2013 20:26:35 -0400 Subject: [PATCH] fix all links to point to /react as root --- cookbook/cb-01-introduction.md | 2 +- cookbook/cb-03-if-else-in-JSX tip.md | 2 +- cookbook/cb-03-if-else-in-JSX.md | 2 +- cookbook/cb-06-style-prop-value-px tip.md | 2 +- cookbook/cb-06-style-prop-value-px.md | 2 +- cookbook/cb-08-controlled-input-null-value tip.md | 2 +- cookbook/cb-08-controlled-input-null-value.md | 2 +- ...omponentWillReceiveProps-not-triggered-after-mounting-tip.md | 2 +- ...09-componentWillReceiveProps-not-triggered-after-mounting.md | 2 +- cookbook/cb-11-dom-event-listeners tip.md | 2 +- cookbook/cb-11-dom-event-listeners.md | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cookbook/cb-01-introduction.md b/cookbook/cb-01-introduction.md index d9b1b0c9..bccc0b94 100644 --- a/cookbook/cb-01-introduction.md +++ b/cookbook/cb-01-introduction.md @@ -5,7 +5,7 @@ layout: docs permalink: introduction.html --- -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. +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. ### Contributing diff --git a/cookbook/cb-03-if-else-in-JSX tip.md b/cookbook/cb-03-if-else-in-JSX tip.md index c29edf4e..39bf4d64 100644 --- a/cookbook/cb-03-if-else-in-JSX tip.md +++ b/cookbook/cb-03-if-else-in-JSX tip.md @@ -26,4 +26,4 @@ What you're searching for is ternary expression: React.renderComponent(
Hello World!
, mountNode); ``` -Try the [JSX compiler](http://facebook.github.io/react/jsx-compiler.html). +Try the [JSX compiler](/react/jsx-compiler.html). diff --git a/cookbook/cb-03-if-else-in-JSX.md b/cookbook/cb-03-if-else-in-JSX.md index b1512a64..c5cfc448 100644 --- a/cookbook/cb-03-if-else-in-JSX.md +++ b/cookbook/cb-03-if-else-in-JSX.md @@ -31,4 +31,4 @@ React.renderComponent(
Hello World!
, mountNode) ``` ### Discussion -Try the [JSX compiler](http://facebook.github.io/react/jsx-compiler.html). +Try the [JSX compiler](react/jsx-compiler.html). diff --git a/cookbook/cb-06-style-prop-value-px tip.md b/cookbook/cb-06-style-prop-value-px tip.md index a70f1c6f..0639fc3a 100644 --- a/cookbook/cb-06-style-prop-value-px tip.md +++ b/cookbook/cb-06-style-prop-value-px tip.md @@ -14,7 +14,7 @@ var divStyle = {height: 10}; // rendered as "height:10px" React.renderComponent(
Hello World!
, mountNode); ``` -See [Inline Styles](inline-styles-tip.html) for more info. +See [Inline Styles](/react/docs/cookbook/inline-styles-tip.html) for more info. Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix: diff --git a/cookbook/cb-06-style-prop-value-px.md b/cookbook/cb-06-style-prop-value-px.md index fe5bc9b8..96a90680 100644 --- a/cookbook/cb-06-style-prop-value-px.md +++ b/cookbook/cb-06-style-prop-value-px.md @@ -19,7 +19,7 @@ React.renderComponent(
Hello World!
, mountNode); ``` ### Discussion -See [Inline Styles](inline-styles.html) for more info. +See [Inline Styles](/react/docs/cookbook/inline-styles.html) for more info. Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix: diff --git a/cookbook/cb-08-controlled-input-null-value tip.md b/cookbook/cb-08-controlled-input-null-value tip.md index 096b35d0..ec95044a 100644 --- a/cookbook/cb-08-controlled-input-null-value tip.md +++ b/cookbook/cb-08-controlled-input-null-value tip.md @@ -5,7 +5,7 @@ layout: docs permalink: controlled-input-null-value-tip.html --- -Specifying the `value` prop on a [controlled component](forms.html) prevents the user from changing the input unless you desire so. +Specifying the `value` prop on a [controlled component](/react/docs/cookbook/forms.html) prevents the user from changing the input unless you desire so. 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`. diff --git a/cookbook/cb-08-controlled-input-null-value.md b/cookbook/cb-08-controlled-input-null-value.md index b928f150..dd1413ba 100644 --- a/cookbook/cb-08-controlled-input-null-value.md +++ b/cookbook/cb-08-controlled-input-null-value.md @@ -6,7 +6,7 @@ permalink: controlled-input-null-value.html --- ### Problem -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). +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). ### Solution You might have accidentally set `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text becomes editable. diff --git a/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting-tip.md b/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting-tip.md index eb58a304..765b5fea 100644 --- a/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting-tip.md +++ b/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting-tip.md @@ -5,6 +5,6 @@ layout: docs permalink: componentWillReceiveProps-not-triggered-after-mounting-tip.html --- -`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. +`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. 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. diff --git a/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting.md b/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting.md index d0d9f466..827d6530 100644 --- a/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting.md +++ b/cookbook/cb-09-componentWillReceiveProps-not-triggered-after-mounting.md @@ -9,7 +9,7 @@ permalink: componentWillReceiveProps-not-triggered-after-mounting.html `componentWillReceiveProps` isn't triggered after the node is put on scene. ### Solution -This is by design. Check out [other lifecycle methods](component-specs.html) for the one that suits your needs. +This is by design. Check out [other lifecycle methods](/react/docs/cookbook/component-specs.html) for the one that suits your needs. ### Discussion `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. diff --git a/cookbook/cb-11-dom-event-listeners tip.md b/cookbook/cb-11-dom-event-listeners tip.md index b609a7f8..35d176bf 100644 --- a/cookbook/cb-11-dom-event-listeners tip.md +++ b/cookbook/cb-11-dom-event-listeners tip.md @@ -7,7 +7,7 @@ permalink: dom-event-listeners-tip.html > Note: > -> 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. +> 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. This example displays the window width: diff --git a/cookbook/cb-11-dom-event-listeners.md b/cookbook/cb-11-dom-event-listeners.md index 6ca378dc..ac64ffcb 100644 --- a/cookbook/cb-11-dom-event-listeners.md +++ b/cookbook/cb-11-dom-event-listeners.md @@ -11,7 +11,7 @@ You want to listen to an event inside a component. ### Solution > Note: > -> 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. +> 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. This example displays the window width: