mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Docs: add a bunch of redirects (#8137)
* add a bunch of redirects * add more redirects
This commit is contained in:
committed by
Dan Abramov
parent
cc3b821f66
commit
3fe1664601
@@ -6,6 +6,10 @@ layout: docs
|
||||
category: Add-Ons
|
||||
prev: addons.html
|
||||
next: create-fragment.html
|
||||
redirect_from:
|
||||
- "docs/animation-ja-JP.html"
|
||||
- "docs/animation-ko-KR.html"
|
||||
- "docs/animation-zh-CN.html"
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
@@ -4,7 +4,12 @@ title: Components and Props
|
||||
permalink: docs/components-and-props.html
|
||||
redirect_from:
|
||||
- "docs/reusable-components.html"
|
||||
- "docs/reusable-components-zh-CN.html"
|
||||
- "docs/transferring-props.html"
|
||||
- "docs/transferring-props-it-IT.html"
|
||||
- "docs/transferring-props-ja-JP.html"
|
||||
- "docs/transferring-props-ko-KR.html"
|
||||
- "docs/transferring-props-zh-CN.html"
|
||||
- "tips/props-in-getInitialState-as-anti-pattern.html"
|
||||
- "tips/communicate-between-components.html"
|
||||
prev: rendering-elements.html
|
||||
|
||||
+7
-5
@@ -4,7 +4,9 @@ title: Forms
|
||||
permalink: docs/forms.html
|
||||
prev: state-and-lifecycle.html
|
||||
next: lifting-state-up.html
|
||||
redirect_from: "tips/controlled-input-null-value.html"
|
||||
redirect_from:
|
||||
- "tips/controlled-input-null-value.html"
|
||||
- "docs/forms-zh-CN.html"
|
||||
---
|
||||
|
||||
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 {
|
||||
type="radio"
|
||||
name="choice"
|
||||
value="C"
|
||||
onChange={this.handleChange} />
|
||||
onChange={this.handleChange} />
|
||||
Option C
|
||||
</label>
|
||||
<br />
|
||||
@@ -497,7 +499,7 @@ class Form extends React.Component {
|
||||
<input
|
||||
type="checkbox"
|
||||
value="A"
|
||||
onChange={this.handleChange} />
|
||||
onChange={this.handleChange} />
|
||||
Option A
|
||||
</label>
|
||||
<br />
|
||||
@@ -506,7 +508,7 @@ class Form extends React.Component {
|
||||
type="checkbox"
|
||||
value="B"
|
||||
onChange={this.handleChange}
|
||||
defaultChecked={true} />
|
||||
defaultChecked={true} />
|
||||
Option B
|
||||
</label>
|
||||
<br />
|
||||
@@ -514,7 +516,7 @@ class Form extends React.Component {
|
||||
<input
|
||||
type="checkbox"
|
||||
value="C"
|
||||
onChange={this.handleChange} />
|
||||
onChange={this.handleChange} />
|
||||
Option C
|
||||
</label>
|
||||
<br />
|
||||
|
||||
@@ -4,6 +4,8 @@ title: Handling Events
|
||||
permalink: docs/handling-events.html
|
||||
prev: state-and-lifecycle.html
|
||||
next: conditional-rendering.html
|
||||
redirect_from:
|
||||
- "docs/events-ko-KR.html"
|
||||
---
|
||||
|
||||
Handling events with React elements is very similar to handling events on DOM elements. There are some syntactic differences:
|
||||
|
||||
@@ -7,6 +7,8 @@ next: introducing-jsx.html
|
||||
redirect_from:
|
||||
- "docs/index.html"
|
||||
- "docs/getting-started.html"
|
||||
- "docs/getting-started-ko-KR.html"
|
||||
- "docs/getting-started-zh-CN.html"
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
@@ -3,6 +3,7 @@ id: installation
|
||||
title: Installation
|
||||
permalink: docs/installation.html
|
||||
redirect_from:
|
||||
- "download.html"
|
||||
- "downloads.html"
|
||||
- "docs/tooling-integration.html"
|
||||
- "docs/package-management.html"
|
||||
|
||||
@@ -9,6 +9,8 @@ redirect_from:
|
||||
- "tips/self-closing-tag.html"
|
||||
- "tips/maximum-number-of-jsx-root-nodes.html"
|
||||
- "tips/children-props-type.html"
|
||||
- "docs/jsx-in-depth-zh-CN.html"
|
||||
- "docs/jsx-in-depth-ko-KR.html"
|
||||
---
|
||||
|
||||
Fundamentally, JSX just provides syntactic sugar for the `React.createElement(component, props, ...children)` function. The JSX code:
|
||||
|
||||
@@ -4,6 +4,9 @@ title: Lifting State Up
|
||||
permalink: docs/lifting-state-up.html
|
||||
prev: state-and-lifecycle.html
|
||||
next: composition-vs-inheritance.html
|
||||
redirect_from:
|
||||
- "docs/flux-overview.html"
|
||||
- "docs/flux-todo-list.html"
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
@@ -8,6 +8,7 @@ redirect_from:
|
||||
- "docs/tags-and-attributes.html"
|
||||
- "docs/dom-differences.html"
|
||||
- "docs/special-non-dom-attributes.html"
|
||||
- "docs/class-name-manipulation.html"
|
||||
- "tips/inline-styles.html"
|
||||
- "tips/style-props-value-px.html"
|
||||
- "tips/dangerously-set-inner-html.html"
|
||||
|
||||
@@ -7,6 +7,8 @@ permalink: docs/react-component.html
|
||||
redirect_from:
|
||||
- "docs/component-api.html"
|
||||
- "docs/component-specs.html"
|
||||
- "docs/component-specs-ko-KR.html"
|
||||
- "docs/component-specs-zh-CN.html"
|
||||
- "tips/componentWillReceiveProps-not-triggered-after-mounting.html"
|
||||
- "tips/dom-event-listeners.html"
|
||||
- "tips/initial-ajax.html"
|
||||
|
||||
@@ -8,6 +8,9 @@ redirect_from:
|
||||
- "docs/reference.html"
|
||||
- "docs/clone-with-props.html"
|
||||
- "docs/top-level-api.html"
|
||||
- "docs/top-level-api-ja-JP.html"
|
||||
- "docs/top-level-api-ko-KR.html"
|
||||
- "docs/top-level-api-zh-CN.html"
|
||||
- "docs/glossary.html"
|
||||
---
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ title: Refs and the DOM
|
||||
redirect_from:
|
||||
- "docs/working-with-the-browser.html"
|
||||
- "docs/more-about-refs.html"
|
||||
- "docs/more-about-refs-ko-KR.html"
|
||||
- "docs/more-about-refs-zh-CN.html"
|
||||
- "tips/expose-component-functions.html"
|
||||
- "tips/children-undefined.html"
|
||||
permalink: docs/refs-and-the-dom.html
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
id: thinking-in-react
|
||||
title: Thinking in React
|
||||
permalink: docs/thinking-in-react.html
|
||||
redirect_from: 'blog/2013/11/05/thinking-in-react.html'
|
||||
redirect_from:
|
||||
- 'blog/2013/11/05/thinking-in-react.html'
|
||||
- 'docs/thinking-in-react-zh-CN.html'
|
||||
prev: composition-vs-inheritance.html
|
||||
---
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@ permalink: /tutorial/tutorial.html
|
||||
redirect_from:
|
||||
- "docs/tutorial.html"
|
||||
- "docs/why-react.html"
|
||||
- "docs/tutorial-ja-JP.html"
|
||||
- "docs/tutorial-ko-KR.html"
|
||||
- "docs/tutorial-zh-CN.html"
|
||||
---
|
||||
|
||||
## What We're Building
|
||||
|
||||
Reference in New Issue
Block a user