-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(legacy-apis): spanish translation (#660)
* docs(legacy-apis): spanish translation * Apply suggestions from code review Co-authored-by: Rainer Martinez <rmartinezfraga@yandex.com> * docs: using wiki wording for consistency --------- Co-authored-by: Rainer Martinez <rmartinezfraga@yandex.com>
- Loading branch information
1 parent
fa2e46e
commit 4d4a201
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
--- | ||
title: "Legacy React APIs" | ||
title: "APIs heredadas de React" | ||
--- | ||
|
||
<Intro> | ||
|
||
These APIs are exported from the `react` package, but they are not recommended for use in newly written code. See the linked individual API pages for the suggested alternatives. | ||
Estas APIs se exportan desde el paquete `react`, pero no se recomiendan para ser usadas en código nuevo. Consulta las páginas de API individuales vinculadas para conocer las alternativas sugeridas. | ||
|
||
</Intro> | ||
|
||
--- | ||
|
||
## Legacy APIs {/*legacy-apis*/} | ||
## APIs heredadas {/*legacy-apis*/} | ||
|
||
* [`Children`](/reference/react/Children) lets you manipulate and transform the JSX received as the `children` prop. [See alternatives.](/reference/react/Children#alternatives) | ||
* [`cloneElement`](/reference/react/cloneElement) lets you create a React element using another element as a starting point. [See alternatives.](/reference/react/cloneElement#alternatives) | ||
* [`Component`](/reference/react/Component) lets you define a React component as a JavaScript class. [See alternatives.](/reference/react/Component#alternatives) | ||
* [`createElement`](/reference/react/createElement) lets you create a React element. Typically, you'll use JSX instead. | ||
* [`createRef`](/reference/react/createRef) creates a ref object which can contain arbitrary value. [See alternatives.](/reference/react/createRef#alternatives) | ||
* [`isValidElement`](/reference/react/isValidElement) checks whether a value is a React element. Typically used with [`cloneElement`.](/reference/react/cloneElement) | ||
* [`PureComponent`](/reference/react/PureComponent) is similar to [`Component`,](/reference/react/Component) but it skip re-renders with same props. [See alternatives.](/reference/react/PureComponent#alternatives) | ||
* [`Children`](/reference/react/Children) te permite manipular y transformar el JSX recibido como la propiedad `children`. [Ver alternativas.](/reference/react/Children#alternatives) | ||
* [`cloneElement`](/reference/react/cloneElement) te permite crear un elemento React usando otro elemento como punto de partida. [Ver alternativas.](/reference/react/cloneElement#alternatives) | ||
* [`Component`](/reference/react/Component) te permite definir un componente React como una clase JavaScript. [Ver alternativas.](/reference/react/Component#alternatives) | ||
* [`createElement`](/reference/react/createElement) te permite crear un elemento React. Por lo general, en su lugar, se utiliza JSX. | ||
* [`createRef`](/reference/react/createRef) crea un objeto ref que puede contener un valor arbitrario. [Ver alternativas.](/reference/react/createRef#alternatives) | ||
* [`isValidElement`](/reference/react/isValidElement) verifica si un valor es un elemento React. Por lo general, se utiliza con [`cloneElement`.](/reference/react/cloneElement) | ||
* [`PureComponent`](/reference/react/PureComponent) es similar a [`Component`,](/reference/react/Component) pero omite el renderizado con las mismas props. [Ver alternativas.](/reference/react/PureComponent#alternatives) | ||
|
||
|
||
--- | ||
|
||
## Deprecated APIs {/*deprecated-apis*/} | ||
## APIs obsoletas {/*deprecated-apis*/} | ||
|
||
<Deprecated> | ||
|
||
These APIs will be removed in a future major version of React. | ||
Estas APIs se eliminarán en una futura versión mayor de React. | ||
|
||
</Deprecated> | ||
|
||
* [`createFactory`](/reference/react/createFactory) lets you create a function that produces React elements of a certain type. | ||
* [`createFactory`](/reference/react/createFactory) te permite crear una función que produce elementos React de un cierto tipo. |