Skip to content

Commit 4727ef0

Browse files
authored
Merge branch 'master' into jvelezpo/examples
2 parents 4afc3c2 + 5ce1270 commit 4727ef0

File tree

103 files changed

+2708
-1854
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2708
-1854
lines changed

content/authors.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ sophiebits:
7373
steveluscher:
7474
name: Steven Luscher
7575
url: https://twitter.com/steveluscher
76+
tesseralis:
77+
name: Nat Alison
78+
url: https://twitter.com/tesseralis
7679
timer:
7780
name: Joe Haddad
7881
url: https://twitter.com/timer150
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: JSFiddle Integration
2+
title: Integración con JSFiddle
33
author: [vjeux]
44
---
55

6-
[JSFiddle](https://jsfiddle.net) just announced support for React. This is an exciting news as it makes collaboration on snippets of code a lot easier. You can play around this **[base React JSFiddle](http://jsfiddle.net/vjeux/kb3gN/)**, fork it and share it! A [fiddle without JSX](http://jsfiddle.net/vjeux/VkebS/) is also available.
6+
[JSFiddle](https://jsfiddle.net) acaba de anunciar soporte para React. Esta es una noticia increíble debido a que hace la colaboración con fragmentos de código mucho más fácil. ¡Puedes jugar, forkear y compartir esta **[base para react en JSFiddle](http://jsfiddle.net/vjeux/kb3gN/)**! Un [fiddle sin JSX](http://jsfiddle.net/vjeux/VkebS/) también está disponible.
77

88

9-
<blockquote class="twitter-tweet" align="center"><p>React (by Facebook) is now available on JSFiddle. <a href="http://t.co/wNQf9JPv5u" title="http://facebook.github.io/react/">facebook.github.io/react/</a></p>&mdash; JSFiddle (@jsfiddle) <a href="https://twitter.com/jsfiddle/status/341114115781177344">June 2, 2013</a></blockquote>
9+
<blockquote class="twitter-tweet" align="center"><p>React (hecho por Facebook) ahora está disponible en JSFiddle. <a href="http://t.co/wNQf9JPv5u" title="http://facebook.github.io/react/">facebook.github.io/react/</a></p>&mdash; JSFiddle (@jsfiddle) <a href="https://twitter.com/jsfiddle/status/341114115781177344">2 de Enero del 2013</a></blockquote>

content/blog/2013-06-05-why-react.md

Lines changed: 67 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,91 @@
11
---
2-
title: Why did we build React?
2+
title: ¿Por qué contruimos React?
33
author: [petehunt]
44
---
55

6-
There are a lot of JavaScript MVC frameworks out there. Why did we build React
7-
and why would you want to use it?
6+
Hay muchos frameworks MVC para JavaScript. ¿Por qué construimos React y por qué
7+
querrías usarlo?
88

9-
## React isn't an MVC framework. {#react-isnt-an-mvc-framework}
9+
## React no es un framework MVC {#react-isnt-an-mvc-framework}
1010

11-
React is a library for building composable user interfaces. It encourages
12-
the creation of reusable UI components which present data that changes over
13-
time.
11+
React es una biblioteca para construir interfaces de usuario componibles. Fomenta la creación de
12+
componentes reutilizables para interfaces de usuario que muestran datos que
13+
cambian con el tiempo.
1414

15-
## React doesn't use templates. {#react-doesnt-use-templates}
15+
## React no usa plantillas {#react-doesnt-use-templates}
1616

17-
Traditionally, web application UIs are built using templates or HTML directives.
18-
These templates dictate the full set of abstractions that you are allowed to use
19-
to build your UI.
17+
Tradicionalmente, las interfaces de usuario para aplicaciones web se crean
18+
utilizando plantillas o directivas HTML. Estas plantillas dictan el conjunto
19+
completo de abstracciones que se permiten usar para crear tus interfaces de usuario.
2020

21-
React approaches building user interfaces differently by breaking them into
22-
**components**. This means React uses a real, full featured programming language
23-
to render views, which we see as an advantage over templates for a few reasons:
21+
React se enfoca en la construcción de interfaces de usuario de forma diferente
22+
al dividirlas en **componentes**. Esto significa que React utiliza un lenguaje de
23+
programación real y completo para _renderizar_ vistas, lo que vemos como una
24+
ventaja sobre las plantillas por varias razones:
2425

25-
- **JavaScript is a flexible, powerful programming language** with the ability
26-
to build abstractions. This is incredibly important in large applications.
27-
- By unifying your markup with its corresponding view logic, React can actually
28-
make views **easier to extend and maintain**.
29-
- By baking an understanding of markup and content into JavaScript, there's
30-
**no manual string concatenation** and therefore less surface area for XSS
31-
vulnerabilities.
26+
- **JavaScript es un lenguaje de programación flexible y potente** con la capacidad
27+
de crear abstracciones. Esto es increíblement importante en aplicaciones grandes.
28+
- Al unificar el _markup_ con la lógica en vista correspondiente, React puede
29+
hacer a las vistas **fácil de extender y mantener**.
30+
- Al integrar la comprensión del _markup_ y su contenido dentro de JavaScript,
31+
no hay **concatenación manual de string** y por tanto menos menos espacio
32+
para vulnerabilidades XSS.
3233

33-
We've also created [JSX](/docs/jsx-in-depth.html), an optional syntax
34-
extension, in case you prefer the readability of HTML to raw JavaScript.
34+
También hemos creado [JSX](/docs/jsx-in-depth.html), una extensión de sintaxis
35+
opcional, en caso de que prefieras la legibilidad de HTML a JavaScript simple.
3536

36-
## Reactive updates are dead simple. {#reactive-updates-are-dead-simple}
37+
## Las actualizaciones reactivas son muy simples {#reactive-updates-are-dead-simple}
3738

38-
React really shines when your data changes over time.
39+
React realmente brilla cuando sus datos se modifican con el tiempo.
3940

40-
In a traditional JavaScript application, you need to look at what data changed
41-
and imperatively make changes to the DOM to keep it up-to-date. Even AngularJS,
42-
which provides a declarative interface via directives and data binding [requires
43-
a linking function to manually update DOM nodes](https://code.angularjs.org/1.0.8/docs/guide/directive#reasonsbehindthecompilelinkseparation).
41+
En una aplicación de JavaScript tradicional, debes tomar en cuenta qué datos han
42+
cambiado y realizar cambios de forma imperativa en el DOM para mantenerlos actualizados.
43+
Incluso AngularJS, que proporciona una interfaz declarativa a través de directivas
44+
y _binding_ de datos [require una función que enlace manualmente los cambios a los nodos del DOM](https://code.angularjs.org/1.0.8/docs/guide/directive#reasonsbehindthecompilelinkseparation).
4445

45-
React takes a different approach.
46+
React adopta un enfoque diferente.
4647

47-
When your component is first initialized, the `render` method is called,
48-
generating a lightweight representation of your view. From that representation,
49-
a string of markup is produced, and injected into the document. When your data
50-
changes, the `render` method is called again. In order to perform updates as
51-
efficiently as possible, we diff the return value from the previous call to
52-
`render` with the new one, and generate a minimal set of changes to be applied
53-
to the DOM.
48+
Cuando un componente se inicializa por primera vez, el método `render` es invocado
49+
generando una representación ligera de tu vista. A partir de esa representación,
50+
se produce una cadena de _markup_, e inyectada en el documento.
51+
Cuando tus datos cambian, se vuelve a llamar al método `render`. Para realizar
52+
las actualizaciones de la manera más eficiente posible, diferenciamos el valor
53+
de retorno de la llamada anterior para procesar con el nuevo, y generamos un
54+
conjunto mínimo de cambios que se aplicarán al DOM.
5455

55-
> The data returned from `render` is neither a string nor a DOM node -- it's a
56-
> lightweight description of what the DOM should look like.
56+
> Los datos regresados desde `render` no son ni una cadena de texto ni un nodo
57+
> del DOM: son una descripción ligera de cómo debería verse el DOM.
5758
58-
We call this process **reconciliation**. Check out
59-
[this jsFiddle](http://jsfiddle.net/2h6th4ju/) to see an example of
60-
reconciliation in action.
59+
A este proceso lo llamamos **reconciliación**. Échale un vistazo a [este jsFiddle](http://jsfiddle.net/2h6th4ju/)
60+
para ver un ejemplo de reconciliación en acción.
6161

62-
Because this re-render is so fast (around 1ms for TodoMVC), the developer
63-
doesn't need to explicitly specify data bindings. We've found this approach
64-
makes it easier to build apps.
62+
Debido a que esta nueva rerenderización es tan rápida (alrededor de 1ms para TodoMVC),
63+
el desarrollador no necesita especificar explícitamente los _bindings_ de datos.
64+
Nos hemos dado cuenta que este enfoque facilita la creación de aplicaciones.
6565

66-
## HTML is just the beginning. {#html-is-just-the-beginning}
66+
## HTML es solo el comienzo {#html-is-just-the-beginning}
6767

68-
Because React has its own lightweight representation of the document, we can do
69-
some pretty cool things with it:
68+
Debido a que React tiene su propia representación ligera del documento, podemos
69+
hacer algunas cosas muy interesantes con él:
7070

71-
- Facebook has dynamic charts that render to `<canvas>` instead of HTML.
72-
- Instagram is a "single page" web app built entirely with React and
73-
`Backbone.Router`. Designers regularly contribute React code with JSX.
74-
- We've built internal prototypes that run React apps in a web worker and use
75-
React to drive **native iOS views** via an Objective-C bridge.
76-
- You can run React
77-
[on the server](https://github.com/petehunt/react-server-rendering-example)
78-
for SEO, performance, code sharing and overall flexibility.
79-
- Events behave in a consistent, standards-compliant way in all browsers
80-
(including IE8) and automatically use
81-
[event delegation](http://davidwalsh.name/event-delegate).
71+
- Facebook tiene gráficas dinámicas que se _renderizan_ en un `<canvas>` en lugar
72+
de HTML.
73+
- Instagram es una aplicación web "de una sola página" construida completamente con
74+
React y `Backbone.Router`. Los diseñadores contribuyen regularmente con código
75+
React con JSX.
76+
- Hemos creado prototipos internos que ejecutan las aplicaciones React en un web
77+
worker y usan React para impulsar las **vistas nativas de iOS** a través de un
78+
puente en Objective-C.
79+
- Puedes ejecutar React
80+
[en el servidor](https://github.com/petehunt/react-server-rendering-example)
81+
para favorecer SEO, desempeño, compartir código y sobre todo flexibilidad.
82+
- Los eventos se comportan de manera coherente y compatible con los estándares
83+
en todos los navegadores (incluyendo IE8) y utilizan automáticamente la
84+
[delegación de eventos](http://davidwalsh.name/event-delegate).
8285

83-
Head on over to [https://reactjs.org](https://reactjs.org) to check out what we have
84-
built. Our documentation is geared towards building apps with the framework,
85-
but if you are interested in the nuts and bolts
86-
[get in touch](/support.html) with us!
86+
Dirígete a [https://reactjs.org](https://reactjs.org) para ver lo que hemos
87+
construido. Nuestra documentación está orientada a crear aplicaciones con el
88+
framework, pero si estás interesado en todos los detalles, ¡[ponte en contacto](/support.html)
89+
con nosotros!
8790

88-
Thanks for reading!
91+
¡Gracias por leer!

content/blog/2013-06-12-community-roundup.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,46 @@ title: "Community Round-up #1"
33
author: [vjeux]
44
---
55

6-
React was open sourced two weeks ago and it's time for a little round-up of what has been going on.
6+
El código de React fue hecho público hace dos semanas y ya es hora de un pequeño resumen de lo que ha estado sucediendo.
77

8-
## Khan Academy Question Editor {#khan-academy-question-editor}
8+
## Editor de preguntas de Khan Academy {#khan-academy-question-editor}
99

10-
It looks like [Sophie Alpert](http://sophiebits.com/) is the first person outside of Facebook and Instagram to push React code to production. We are very grateful for her contributions in form of pull requests, bug reports and presence on IRC ([#reactjs on Freenode](irc://chat.freenode.net/reactjs)). Sophie wrote about her experience using React:
10+
Parece que [Sophie Alpert](http://sophiebits.com/) es la primera persona externa de Facebook e Instagram en publicar código de React a producción. Estamos muy agradecidos por sus contribuciones en forma de _pull requests_, reportes de bugs y presencia en IRC ([#reactjs en Freenode](irc://chat.freenode.net/reactjs)). Sophie escribió sobre su experiencia usando React:
1111

12-
> I just rewrote a 2000-line project in React and have now made a handful of pull requests to React. Everything about React I've seen so far seems really well thought-out and I'm proud to be the first non-FB/IG production user of React.
12+
> Acabo de reescribir un proyecto de 2000 líneas en React y varios _pull requests_ para React. Todo lo que he visto hasta ahora sobre React parece muy bien pensado y estoy orgullosa de ser la primera usuaria en producción de React que no es de FB/IG.
1313
>
14-
> The project that I rewrote in React (and am continuing to improve) is the Khan Academy question editor which content creators can use to enter questions and hints that will be presented to students:
14+
> El proyecto que reescribí en React (y sigo mejorando) es el editor de preguntas de Khan Academy que los creadores de contenido pueden usar para ingresar preguntas y sugerencias que se le presentarán a los estudiantes:
15+
1516
> <figure><a href="http://sophiebits.com/2013/06/09/using-react-to-speed-up-khan-academy.html"><img src="../images/blog/khan-academy-editor.png"></a></figure>
1617
>
17-
> [Read the full post...](http://sophiebits.com/2013/06/09/using-react-to-speed-up-khan-academy.html)
18+
> [Leer el post completo...](http://sophiebits.com/2013/06/09/using-react-to-speed-up-khan-academy.html)
1819
19-
## Pimp my Backbone.View (by replacing it with React) {#pimp-my-backboneview-by-replacing-it-with-react}
20+
## Mejora mi Backbone.View (reemplazándolo con React) {#pimp-my-backboneview-by-replacing-it-with-react}
2021

21-
[Paul Seiffert](https://blog.mayflower.de/) wrote a blog post that explains how to integrate React into Backbone applications.
22+
[Paul Seiffert](https://blog.mayflower.de/) escribió un _blog post_ que explica cómo integrar React con las aplicaciones en Backbone.
2223

23-
> React has some interesting concepts for JavaScript view objects that can be used to eliminate this one big problem I have with Backbone.js.
24+
> React tiene algunos conceptos interesantes para los objetos de vista de JavaScript que pueden usarse para eliminar este gran problema que tengo con Backbone.js.
2425
>
25-
> As in most MVC implementations (although React is probably just a VC implementation), a view is one portion of the screen that is managed by a controlling object. This object is responsible for deciding when to re-render the view and how to react to user input. With React, these view-controllers objects are called components. A component knows how to render its view and how to handle to the user's interaction with it.
26+
> Como en la mayoría de las implementaciones de MVC (aunque React es probablemente solo una implementación de VC), una vista es una parte de la pantalla que está gestionada por un objeto de control. Este objeto es responsable de decidir cuándo volver a renderizar la vista y cómo reaccionar al _input_ del usuario. Con React, estos objetos controladores de vista se denominan componentes. Un componente sabe cómo representar su vista y cómo manejar la interacción del usuario con él.
2627
>
27-
> The interesting thing is that React is figuring out by itself when to re-render a view and how to do this in the most efficient way.
28+
> Lo interesante es que React está descubriendo por sí mismo cuándo volver a renderizar una vista y cómo hacerlo de la manera más eficiente.
2829
>
29-
> [Read the full post...](https://blog.mayflower.de/3937-Backbone-React.html)
30+
> [Leer el post completo...](https://blog.mayflower.de/3937-Backbone-React.html)
3031
31-
## Using facebook's React with require.js {#using-facebooks-react-with-requirejs}
32+
## Usando React de Facebook con require.js {#using-facebooks-react-with-requirejs}
3233

33-
[Mario Mueller](http://blog.xenji.com/) wrote a menu component in React and was able to easily integrate it with require.js, EventEmitter2 and bower.
34+
[Mario Mueller](http://blog.xenji.com/) escribió un componente de menú en React y pudo integrarlo fácilmente con require.js, EventEmitter2 y bower.
3435

35-
> I recently stumbled upon facebook's React library, which is a JavaScript library for building reusable frontend components. Even if this lib is only at version 0.3.x it behaves very stable, it is fast and is fun to code. I'm a big fan of require.js, so I tried to use React within the require.js eco system. It was not as hard as expected and here are some examples and some thoughts about it.
36-
>
37-
> [Read the full post...](http://blog.xenji.com/2013/06/facebooks-react-require-js.html)
36+
> Recientemente me topé con la biblioteca React de Facebook; una biblioteca de JavaScript para crear componentes para el frontend reutilizables. Incluso si esta versión solo está en la versión 0.3.x se comporta de forma muy estable, es rápido y es divertido de codificar. Soy un aficionado de require.js, así que intenté usar React dentro del ecosistema (entorno) de require.js. No fue tan difícil como se esperaba y aquí hay algunos ejemplos y algunas ideas al respecto.
37+
>
38+
> [Leer el post completo...](http://blog.xenji.com/2013/06/facebooks-react-require-js.html)
3839
39-
## Origins of React {#origins-of-react}
40+
## Los orígenes de React {#origins-of-react}
4041

41-
[Pete Hunt](http://www.petehunt.net/blog/) explained what differentiates React from other JavaScript libraries in [a previous blog post](/blog/2013/06/05/why-react.html). [Lee Byron](http://leebyron.com/) gives another perspective on Quora:
42+
[Pete Hunt](http://www.petehunt.net/blog/) explicó lo que diferencia a React de otras bibliotecas de JavaScript en [una publicación previa del blog](/blog/2013/06/05/why-react.html). [Lee Byron](http://leebyron.com/) da otra perspectiva en Quora:
4243

43-
> React isn't quite like any other popular JavaScript libraries, and it solves a very specific problem: complex UI rendering. It's also intended to be used along side many other popular libraries. For example, React works well with Backbone.js, amongst many others.
44+
> React no es como ninguna otra biblioteca de JavaScript popular, y resuelve un problema muy específico: la renderización compleja de la interfaz de usuario. También está destinado a ser utilizado junto a muchas otras bibliotecas populares. Por ejemplo, React funciona bien con Backbone.js, entre muchos otros.
4445
>
45-
> React was born out of frustrations with the common pattern of writing two-way data bindings in complex MVC apps. React is an implementation of one-way data bindings.
46+
> React nació de las frustraciones con el patrón común de escribir enlaces de datos bidireccionales en aplicaciones MVC complejas. React es una implementación de enlaces de datos unidireccionales.
4647
>
47-
> [Read the full post...](https://www.quora.com/React-JS-Library/How-is-Facebooks-React-JavaScript-library/answer/Lee-Byron?srid=3DcX)
48+
> [Leer el post completo...](https://www.quora.com/React-JS-Library/How-is-Facebooks-React-JavaScript-library/answer/Lee-Byron?srid=3DcX)

content/blog/2015-08-11-relay-technical-preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ While React simplified the process of developing complex user-interfaces, it lef
1313

1414
Declarative data-fetching means that Relay applications specify *what* data they need, not *how* to fetch that data. Just as React uses a description of the desired UI to manage view updates, Relay uses a data description in the form of GraphQL queries. Given these descriptions, Relay coalesces queries into batches for efficiency, manages error-prone asynchronous logic, caches data for performance, and automatically updates views as data changes.
1515

16-
Relay is also component-oriented, extending the notion of a React component to include a description of what data is necessary to render it. This colocation allows developers to reason locally about their application and eliminates bugs such as under- or over-fetching data.
16+
Relay is also component-oriented, extending the notion of a React component to include a description of what data is necessary to render it. This collocation allows developers to reason locally about their application and eliminates bugs such as under- or over-fetching data.
1717

1818
Relay is in use at Facebook in production apps, and we're using it more and more because *Relay lets developers focus on their products and move fast*. It's working for us and we'd like to share it with the community.
1919

0 commit comments

Comments
 (0)