Skip to content

Commit

Permalink
Merge pull request #139 from reactjs/sync-c6b6dc2d
Browse files Browse the repository at this point in the history
Sync with reactjs.org @ c6b6dc2
  • Loading branch information
fjoshuajr authored Mar 2, 2019
2 parents 6a9f360 + 89dc4ad commit 4b3711b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
14 changes: 10 additions & 4 deletions content/community/conferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ Do you know of a local React.js conference? Add it here! (Please keep the list c

## Upcoming Conferences {#upcoming-conferences}

### React Iran 2019 {#react-iran-2019}
January 31, 2019 in Tehran, Iran
[Website](http://reactiran.com) - [Instagram](https://www.instagram.com/reactiran/)

### Reactathon 2019 {#reactathon-2019}
March 30-31, 2019 in San Francisco, USA

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

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

### ReactJS Girls Conference
May 3, 2019 in London, UK

[Website](https://reactjsgirls.com/) - [Twitter](https://twitter.com/reactjsgirls)

### ReactEurope 2019 {#reacteurope-2019}
May 23-24, 2019 in Paris, France

Expand Down Expand Up @@ -343,3 +344,8 @@ November 4 in Tel Aviv, Israel
November 30, Berlin, Germany

[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.facebook.com/reactdayberlin/) - [Videos](https://www.youtube.com/channel/UC1EYHmQYBUJjkmL6OtK4rlw)

### React Iran 2019 {#react-iran-2019}
January 31, 2019 in Tehran, Iran

[Website](http://reactiran.com) - [Instagram](https://www.instagram.com/reactiran/)
4 changes: 2 additions & 2 deletions content/docs/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Considere por exemplo o componente `Page` que passa as props `user` e `avatarSiz

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.

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`.
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`:

```js
function Page(props) {
Expand All @@ -68,7 +68,7 @@ function Page(props) {
}

// Agora temos:
<Page user={user} />
<Page user={user} avatarSize={avatarSize} />
// ... que renderiza ...
<PageLayout userLink={...} />
// ... que renderiza ...
Expand Down
4 changes: 2 additions & 2 deletions content/docs/legacy-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ If `contextTypes` is defined within a component, the following [lifecycle method
>
> As of React 16, `componentDidUpdate` no longer receives `prevContext`.
### Referencing Context in Stateless Function Components {#referencing-context-in-stateless-function-components}
### Referencing Context in Function Components {#referencing-context-in-stateless-function-components}

> This section documents a legacy API. See the [new API](/docs/context.html).
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.
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.

```javascript
import PropTypes from 'prop-types';
Expand Down

0 comments on commit 4b3711b

Please sign in to comment.