Skip to content

Commit 61fb4ff

Browse files
Kevin Wolfdmoralesm
Kevin Wolf
authored andcommitted
Add translation for AJAX FAQ's (#2)
Translate AJAX FAQ section
1 parent e0d03cb commit 61fb4ff

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

content/docs/faq-ajax.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
22
id: faq-ajax
3-
title: AJAX and APIs
3+
title: AJAX y APIs
44
permalink: docs/faq-ajax.html
55
layout: docs
66
category: FAQ
77
---
88

9-
### How can I make an AJAX call?
9+
### ¿Cómo puedo hacer una llamada AJAX?
1010

11-
You can use any AJAX library you like with React. Some popular ones are [Axios](https://github.com/axios/axios), [jQuery AJAX](https://api.jquery.com/jQuery.ajax/), and the browser built-in [window.fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
11+
Con React, puedes usar cualquier librería AJAX. Algunas de las más populares son [Axios](https://github.com/axios/axios), [jQuery AJAX](https://api.jquery.com/jQuery.ajax/), y [window.fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API), la cual es soportada de manera nativa en la mayoría de navegadores modernos.
1212

13-
### Where in the component lifecycle should I make an AJAX call?
13+
### ¿En qué ciclo de vida de un componente puedo hacer una llamada AJAX?
1414

15-
You should populate data with AJAX calls in the [`componentDidMount`](/docs/react-component.html#mounting) lifecycle method. This is so you can use `setState` to update your component when the data is retrieved.
15+
Deberías ejecutar tus llamadas AJAX en el ciclo de vida [`componentDidMount`](/docs/react-component.html#mounting). De esta manera, podrás llamar a `setState` para actualizar el componente una vez que hayas recibido tus datos.
1616

17-
### Example: Using AJAX results to set local state
17+
### Ejemplo: Utilizar el resultado de una llamada AJAX para actualizar el estado local de un componente
1818

19-
The component below demonstrates how to make an AJAX call in `componentDidMount` to populate local component state.
19+
El siguiente ejemplo demuestra cómo ejecutar una llamada AJAX en `componentDidMount` para establecer el estado local de un componente.
2020

21-
The example API returns a JSON object like this:
21+
La API de ejemplo devuelve el siguiente JSON:
2222

2323
```
2424
{

content/docs/nav.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
- title: FAQ
137137
items:
138138
- id: faq-ajax
139-
title: AJAX and APIs
139+
title: AJAX y APIs
140140
- id: faq-build
141141
title: Babel, JSX, and Build Steps
142142
- id: faq-functions

0 commit comments

Comments
 (0)