Skip to content

Commit 4b3711b

Browse files
authored
Merge pull request reactjs#139 from reactjs/sync-c6b6dc2d
Sync with reactjs.org @ c6b6dc2
2 parents 6a9f360 + 89dc4ad commit 4b3711b

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

content/community/conferences.md

+10-4
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Considere por exemplo o componente `Page` que passa as props `user` e `avatarSiz
5454

5555
Pode parecer redundante passar para baixo as props `user` e `avatarSize` através de vários níveis se no final apenas o componente `Avatar` realmente precisa usa-las. Além disso, é incômodo sempre que o componente `Avatar` precisar de mais props do topo, você também precisar adicionar todas elas por todos os níveis intermediários.
5656

57-
A única maneira de resolver este problema **sem contexto** é [atribuir o próprio componente Avatar a uma prop do componente Page](/docs/composition-vs-inheritance.html#containment), assim os componentes intermediários não precisam saber sobre a prop `user`.
57+
Uma forma de resolver este problema **sem contexto** é [atribuir o próprio componente Avatar a uma prop do componente Page](/docs/composition-vs-inheritance.html#containment), assim os componentes intermediários não precisam saber sobre a prop `user` ou o `avatarSize`:
5858

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

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

content/docs/legacy-context.md

+2-2
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)