Skip to content

Commit b591dc8

Browse files
authored
Merge pull request #189 from reactjs/sync-c6b6dc2d
Sync with reactjs.org @ c6b6dc2
2 parents 822a6a4 + e7781bd commit b591dc8

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

content/community/conferences.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ Do you know of a local React.js conference? Add it here! (Please keep the list c
1212

1313
## Upcoming Conferences {#upcoming-conferences}
1414

15-
### React Iran 2019 {#react-iran-2019}
16-
January 31, 2019 in Tehran, Iran
17-
[Website](http://reactiran.com) - [Instagram](https://www.instagram.com/reactiran/)
18-
1915
### Reactathon 2019 {#reactathon-2019}
2016
March 30-31, 2019 in San Francisco, USA
2117

@@ -31,6 +27,11 @@ April 12, 2019 in Amsterdam, The Netherlands
3127

3228
[Website](https://react.amsterdam) - [Twitter](https://twitter.com/reactamsterdam) - [Facebook](https://www.facebook.com/reactamsterdam)
3329

30+
### ReactJS Girls Conference
31+
May 3, 2019 in London, UK
32+
33+
[Website](https://reactjsgirls.com/) - [Twitter](https://twitter.com/reactjsgirls)
34+
3435
### ReactEurope 2019 {#reacteurope-2019}
3536
May 23-24, 2019 in Paris, France
3637

@@ -343,3 +344,8 @@ November 4 in Tel Aviv, Israel
343344
November 30, Berlin, Germany
344345

345346
[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.facebook.com/reactdayberlin/) - [Videos](https://www.youtube.com/channel/UC1EYHmQYBUJjkmL6OtK4rlw)
347+
348+
### React Iran 2019 {#react-iran-2019}
349+
January 31, 2019 in Tehran, Iran
350+
351+
[Website](http://reactiran.com) - [Instagram](https://www.instagram.com/reactiran/)

content/docs/context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Por ejemplo, considera un componente `Page` que pasa un prop `user` y `avatarSiz
5454

5555
Puede parecer redundante pasar los props de `user` y` avatarSize` a través de muchos niveles si al final solo el componente `Avatar` realmente lo necesita. También es molesto que cada vez que el componente `Avatar` necesite más props, también hay que agregarlos en todos los niveles intermedios.
5656

57-
Una forma de resolver este problema **sin usar Context** es [pasar el mismo componente `Avatar`](/docs/composition-vs-inheritance.html#containment) para que los componentes intermedios no tengan que saber sobre el prop `usuario`:
57+
Una forma de resolver este problema **sin usar Context** es [pasar el mismo componente `Avatar`](/docs/composition-vs-inheritance.html#containment) para que los componentes intermedios no tengan que saber sobre los props `usuario` o `avatarSize`:
5858

5959
```js
6060
function Page(props) {
@@ -68,7 +68,7 @@ function Page(props) {
6868
}
6969

7070
// Ahora tenemos:
71-
<Page user={user} />
71+
<Page user={user} avatarSize={avatarSize} />
7272
// ... que renderiza ...
7373
<PageLayout userLink={...} />
7474
// ... que renderiza ...

content/docs/legacy-context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ If `contextTypes` is defined within a component, the following [lifecycle method
152152
>
153153
> As of React 16, `componentDidUpdate` no longer receives `prevContext`.
154154
155-
### Referencing Context in Stateless Function Components {#referencing-context-in-stateless-function-components}
155+
### Referencing Context in Function Components {#referencing-context-in-stateless-function-components}
156156

157157
> This section documents a legacy API. See the [new API](/docs/context.html).
158158
159-
Stateless function components are also able to reference `context` if `contextTypes` is defined as a property of the function. The following code shows a `Button` component written as a stateless function component.
159+
Function components are also able to reference `context` if `contextTypes` is defined as a property of the function. The following code shows a `Button` component written as a function component.
160160

161161
```javascript
162162
import PropTypes from 'prop-types';

0 commit comments

Comments
 (0)