Skip to content

Commit e380c14

Browse files
Merge branch 'master' of https://github.com/reactjs/reactjs.org into sync-c6b6dc2d
2 parents 8cfc674 + c6b6dc2 commit e380c14

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 @@ For example, consider a `Page` component that passes a `user` and `avatarSize` p
5454

5555
It might feel redundant to pass down the `user` and `avatarSize` props through many levels if in the end only the `Avatar` component really needs it. It's also annoying that whenever the `Avatar` component needs more props from the top, you have to add them at all the intermediate levels too.
5656

57-
One way to solve this issue **without context** is to [pass down the `Avatar` component itself](/docs/composition-vs-inheritance.html#containment) so that the intermediate components don't need to know about the `user` prop:
57+
One way to solve this issue **without context** is to [pass down the `Avatar` component itself](/docs/composition-vs-inheritance.html#containment) so that the intermediate components don't need to know about the `user` or `avatarSize` props:
5858

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

7070
// Now, we have:
71-
<Page user={user} />
71+
<Page user={user} avatarSize={avatarSize} />
7272
// ... which renders ...
7373
<PageLayout userLink={...} />
7474
// ... which renders ...

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)