Skip to content

Components and Props translation #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
6 changes: 4 additions & 2 deletions content/docs/components-and-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ prev: rendering-elements.html
next: state-and-lifecycle.html
---

Components let you split the UI into independent, reusable pieces, and think about each piece in isolation. This page provides an introduction to the idea of components. You can find a [detailed component API reference here](/docs/react-component.html).
Los componentes permiten separar la UI en piezas independientes, reutilizables y pensar en cada pieza de forma aislada.
Esta página proporciona una introducción a la idea de los componentes.
Puedes encontrar una [API detallada sobre componentes aqui](/docs/react-component.html).

Conceptually, components are like JavaScript functions. They accept arbitrary inputs (called "props") and return React elements describing what should appear on the screen.
Conceptualmente, los componentes son como las funciones de JavaScript. Aceptan entradas arbitrarias (llamadas "props") y devuelven a React elementos que describen lo que debe aparecer en la pantalla.

## Function and Class Components

Expand Down