Docs: add a bunch of redirects (#8137)
* add a bunch of redirects * add more redirects
Kevin Lacker committed
Nov 8, 2016 at 11:32 UTC
d885894c6efa6c3eaca5905ddf95457044fdd570
14 files changed
+40
-6
docs/docs/addons-animation.md
+4
@@ -6,6 +6,10 @@ layout: docs
6
category: Add-Ons
7
prev: addons.html
8
next: create-fragment.html
9
+redirect_from:
10
+ - "docs/animation-ja-JP.html"
11
+ - "docs/animation-ko-KR.html"
12
+ - "docs/animation-zh-CN.html"
13
---
14
15
The [`ReactTransitionGroup`](#reacttransitiongroup) add-on component is a low-level API for animation, and [`ReactCSSTransitionGroup`](#reactcsstransitiongroup) is an add-on component for easily implementing basic CSS animations and transitions.
docs/docs/components-and-props.md
+5
@@ -4,7 +4,12 @@ title: Components and Props
4
permalink: docs/components-and-props.html
5
redirect_from:
6
- "docs/reusable-components.html"
7
+ - "docs/reusable-components-zh-CN.html"
8
- "docs/transferring-props.html"
9
+ - "docs/transferring-props-it-IT.html"
10
+ - "docs/transferring-props-ja-JP.html"
11
+ - "docs/transferring-props-ko-KR.html"
12
+ - "docs/transferring-props-zh-CN.html"
13
- "tips/props-in-getInitialState-as-anti-pattern.html"
14
- "tips/communicate-between-components.html"
15
prev: rendering-elements.html
docs/docs/forms.md
+7
-5
@@ -4,7 +4,9 @@ title: Forms
4
permalink: docs/forms.html
5
prev: state-and-lifecycle.html
6
next: lifting-state-up.html
7
-redirect_from: "tips/controlled-input-null-value.html"
7
+redirect_from:
8
+ - "tips/controlled-input-null-value.html"
9
+ - "docs/forms-zh-CN.html"
10
---
11
12
Form components such as `<input>`, `<textarea>`, and `<option>` differ from other native components because they can be mutated via user interactions. These components provide interfaces that make it easier to manage forms in response to user interactions.
@@ -437,7 +439,7 @@ class Form extends React.Component {
439
type="radio"
440
name="choice"
441
value="C"
440
- onChange={this.handleChange} />
442
+ onChange={this.handleChange} />
443
Option C
444
</label>
445
<br />
@@ -497,7 +499,7 @@ class Form extends React.Component {
499
<input
500
type="checkbox"
501
value="A"
500
- onChange={this.handleChange} />
502
+ onChange={this.handleChange} />
503
Option A
504
</label>
505
<br />
@@ -506,7 +508,7 @@ class Form extends React.Component {
508
type="checkbox"
509
value="B"
510
onChange={this.handleChange}
509
- defaultChecked={true} />
511
+ defaultChecked={true} />
512
Option B
513
</label>
514
<br />
@@ -514,7 +516,7 @@ class Form extends React.Component {
516
<input
517
type="checkbox"
518
value="C"
517
- onChange={this.handleChange} />
519
+ onChange={this.handleChange} />
520
Option C
521
</label>
522
<br />
docs/docs/handling-events.md
+2
@@ -4,6 +4,8 @@ title: Handling Events
4
permalink: docs/handling-events.html
5
prev: state-and-lifecycle.html
6
next: conditional-rendering.html
7
+redirect_from:
8
+ - "docs/events-ko-KR.html"
9
---
10
11
Handling events with React elements is very similar to handling events on DOM elements. There are some syntactic differences:
docs/docs/hello-world.md
+2
@@ -7,6 +7,8 @@ next: introducing-jsx.html
7
redirect_from:
8
- "docs/index.html"
9
- "docs/getting-started.html"
10
+ - "docs/getting-started-ko-KR.html"
11
+ - "docs/getting-started-zh-CN.html"
12
---
13
14
The easiest way to get started with React is to use [this Hello World example code on CodePen](http://codepen.io/gaearon/pen/ZpvBNJ?editors=0010). You don't need to install anything; you can just open it in another tab and follow along as we go through examples. If you'd rather use a local development environment, check out the [Installation](/react/docs/installation.html) page.
docs/docs/installation.md
+1
@@ -3,6 +3,7 @@ id: installation
3
title: Installation
4
permalink: docs/installation.html
5
redirect_from:
6
+ - "download.html"
7
- "downloads.html"
8
- "docs/tooling-integration.html"
9
- "docs/package-management.html"
docs/docs/jsx-in-depth.md
+2
@@ -9,6 +9,8 @@ redirect_from:
9
- "tips/self-closing-tag.html"
10
- "tips/maximum-number-of-jsx-root-nodes.html"
11
- "tips/children-props-type.html"
12
+ - "docs/jsx-in-depth-zh-CN.html"
13
+ - "docs/jsx-in-depth-ko-KR.html"
14
---
15
16
Fundamentally, JSX just provides syntactic sugar for the `React.createElement(component, props, ...children)` function. The JSX code:
docs/docs/lifting-state-up.md
+3
@@ -4,6 +4,9 @@ title: Lifting State Up
4
permalink: docs/lifting-state-up.html
5
prev: state-and-lifecycle.html
6
next: composition-vs-inheritance.html
7
+redirect_from:
8
+ - "docs/flux-overview.html"
9
+ - "docs/flux-todo-list.html"
10
---
11
12
Often, several components need to reflect the same changing data. We recommend lifting the shared state up to their closest common ancestor. Let's see how this works in action.
docs/docs/reference-dom-elements.md
+1
@@ -8,6 +8,7 @@ redirect_from:
8
- "docs/tags-and-attributes.html"
9
- "docs/dom-differences.html"
10
- "docs/special-non-dom-attributes.html"
11
+ - "docs/class-name-manipulation.html"
12
- "tips/inline-styles.html"
13
- "tips/style-props-value-px.html"
14
- "tips/dangerously-set-inner-html.html"
docs/docs/reference-react-component.md
+2
@@ -7,6 +7,8 @@ permalink: docs/react-component.html
7
redirect_from:
8
- "docs/component-api.html"
9
- "docs/component-specs.html"
10
+ - "docs/component-specs-ko-KR.html"
11
+ - "docs/component-specs-zh-CN.html"
12
- "tips/componentWillReceiveProps-not-triggered-after-mounting.html"
13
- "tips/dom-event-listeners.html"
14
- "tips/initial-ajax.html"
docs/docs/reference-react.md
+3
@@ -8,6 +8,9 @@ redirect_from:
8
- "docs/reference.html"
9
- "docs/clone-with-props.html"
10
- "docs/top-level-api.html"
11
+ - "docs/top-level-api-ja-JP.html"
12
+ - "docs/top-level-api-ko-KR.html"
13
+ - "docs/top-level-api-zh-CN.html"
14
- "docs/glossary.html"
15
---
16
docs/docs/refs-and-the-dom.md
+2
@@ -4,6 +4,8 @@ title: Refs and the DOM
4
redirect_from:
5
- "docs/working-with-the-browser.html"
6
- "docs/more-about-refs.html"
7
+ - "docs/more-about-refs-ko-KR.html"
8
+ - "docs/more-about-refs-zh-CN.html"
9
- "tips/expose-component-functions.html"
10
- "tips/children-undefined.html"
11
permalink: docs/refs-and-the-dom.html
docs/docs/thinking-in-react.md
+3
-1
@@ -2,7 +2,9 @@
2
id: thinking-in-react
3
title: Thinking in React
4
permalink: docs/thinking-in-react.html
5
-redirect_from: 'blog/2013/11/05/thinking-in-react.html'
5
+redirect_from:
6
+ - 'blog/2013/11/05/thinking-in-react.html'
7
+ - 'docs/thinking-in-react-zh-CN.html'
8
prev: composition-vs-inheritance.html
9
---
10
docs/tutorial/tutorial.md
+3
@@ -7,6 +7,9 @@ permalink: /tutorial/tutorial.html
7
redirect_from:
8
- "docs/tutorial.html"
9
- "docs/why-react.html"
10
+ - "docs/tutorial-ja-JP.html"
11
+ - "docs/tutorial-ko-KR.html"
12
+ - "docs/tutorial-zh-CN.html"
13
---
14
15
## What We're Building