Skip to content

Commit 9dc2755

Browse files
authored
Merge pull request #164 from reactjs/sync-e1abbdec
Sync with reactjs.org @ e1abbde
2 parents 2e79e76 + be14f0b commit 9dc2755

File tree

5 files changed

+39
-33
lines changed

5 files changed

+39
-33
lines changed

content/community/conferences.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +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-
### ReactEurope 2019 {#reacteurope-2019}
16-
May 23-24, 2019 in Paris, France
17-
18-
[Website](https://www.react-europe.org) - [Twitter](https://twitter.com/ReactEurope) - [Facebook](https://www.facebook.com/ReactEurope) - [Videos](https://www.youtube.com/c/ReacteuropeOrgConf)
19-
20-
### React Conf Armenia 2019 {#react-conf-am-19}
21-
May 25, 2019 in Yerevan, Armenia
22-
23-
[Website](https://reactconf.am/) - [Twitter](https://twitter.com/ReactConfAM) - [Facebook](https://www.facebook.com/reactconf.am/) - [YouTube](https://www.youtube.com/c/JavaScriptConferenceArmenia) - [CFP](http://bit.ly/speakReact)
24-
25-
### ReactNext 2019 {#react-next-2019}
26-
June 11, 2019. Tel Aviv, Israel
27-
28-
[Website](https://react-next.com) - [Twitter](https://twitter.com/ReactNext) - [Videos](https://www.youtube.com/channel/UC3BT8hh3yTTYxbLQy_wbk2w)
29-
30-
### React Norway 2019 {#react-norway-2019}
31-
June 12, 2019. Larvik, Norway
32-
33-
[Website](https://reactnorway.com) - [Twitter](https://twitter.com/ReactNorway)
34-
35-
### React Loop 2019 {#react-loop-2019}
36-
June 21, 2019 Chicago, Illinois USA
37-
38-
[Website](https://reactloop.com) - [Twitter](https://twitter.com/ReactLoop)
39-
40-
### Chain React 2019 {#chain-react-2019}
41-
July 11-12, 2019. Portland, OR, USA.
42-
43-
[Website](https://infinite.red/ChainReactConf)
44-
4515
### React Rally 2019 {#react-rally-2019}
4616
August 22-23, 2019. Salt Lake City, USA.
4717

@@ -395,3 +365,33 @@ May 3, 2019 in London, UK
395365
May 11 in Sofia, Bulgaria
396366

397367
[Website](http://react-not-a-conf.com/) - [Twitter](https://twitter.com/reactnotaconf) - [Facebook](https://www.facebook.com/events/780891358936156)
368+
369+
### ReactEurope 2019 {#reacteurope-2019}
370+
May 23-24, 2019 in Paris, France
371+
372+
[Website](https://www.react-europe.org) - [Twitter](https://twitter.com/ReactEurope) - [Facebook](https://www.facebook.com/ReactEurope) - [Videos](https://www.youtube.com/c/ReacteuropeOrgConf)
373+
374+
### React Conf Armenia 2019 {#react-conf-am-19}
375+
May 25, 2019 in Yerevan, Armenia
376+
377+
[Website](https://reactconf.am/) - [Twitter](https://twitter.com/ReactConfAM) - [Facebook](https://www.facebook.com/reactconf.am/) - [YouTube](https://www.youtube.com/c/JavaScriptConferenceArmenia) - [CFP](http://bit.ly/speakReact)
378+
379+
### ReactNext 2019 {#react-next-2019}
380+
June 11, 2019. Tel Aviv, Israel
381+
382+
[Website](https://react-next.com) - [Twitter](https://twitter.com/ReactNext) - [Videos](https://www.youtube.com/channel/UC3BT8hh3yTTYxbLQy_wbk2w)
383+
384+
### React Norway 2019 {#react-norway-2019}
385+
June 12, 2019. Larvik, Norway
386+
387+
[Website](https://reactnorway.com) - [Twitter](https://twitter.com/ReactNorway)
388+
389+
### React Loop 2019 {#react-loop-2019}
390+
June 21, 2019 Chicago, Illinois USA
391+
392+
[Website](https://reactloop.com) - [Twitter](https://twitter.com/ReactLoop)
393+
394+
### Chain React 2019 {#chain-react-2019}
395+
July 11-12, 2019. Portland, OR, USA.
396+
397+
[Website](https://infinite.red/ChainReactConf)

content/community/meetups.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet
5555
* [Düsseldorf](https://www.meetup.com/de-DE/ReactJS-Meetup-Dusseldorf/)
5656
* [Hamburg](https://www.meetup.com/Hamburg-React-js-Meetup/)
5757
* [Karlsruhe](https://www.meetup.com/react_ka/)
58+
* [Kiel](https://www.meetup.com/Kiel-React-Native-Meetup/)
5859
* [Munich](https://www.meetup.com/ReactJS-Meetup-Munich/)
5960
* [React Berlin](https://www.meetup.com/React-Berlin/)
6061
* [React.JS Girls Berlin](https://www.meetup.com/ReactJS-Girls-Berlin/)

content/community/tools-ui-components.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ permalink: community/ui-components.html
7272
## Fee Based Components {#fee-based-components}
7373

7474
* **[ag-Grid](https://www.ag-grid.com)** Advanced data grid / data table for React.
75+
* **[DevExtreme Reactive](https://devexpress.github.io/devextreme-reactive/react/)** High-performance plugin-based Data Grid, Scheduler and Chart components for Bootstrap and Material Design.
7576
* **[ExtReact components](https://www.sencha.com/products/extreact//)**: 115+ Ready-to-Use UI Components.
7677
* **[Grapecity Wijmo UI Components for React](https://www.grapecity.com/en/react/)**: Expand your React UI options with Wijmo’s complete collection of JavaScript components.
7778
* **[jQWidgets React components](https://www.jqwidgets.com/react/)**: Enterprise Ready 70+ UI Components.

content/docs/accessibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ to assistive technology, such as screen readers.
468468
In some browsers we can easily view the accessibility information for each element in the accessibility tree:
469469

470470
- [Using the Accessibility Inspector in Firefox](https://developer.mozilla.org/en-US/docs/Tools/Accessibility_inspector)
471-
- [Activate the Accessibility Inspector in Chrome](https://gist.github.com/marcysutton/0a42f815878c159517a55e6652e3b23a)
471+
- [Using the Accessibility Inspector in Chrome](https://developers.google.com/web/tools/chrome-devtools/accessibility/reference#pane)
472472
- [Using the Accessibility Inspector in OS X Safari](https://developer.apple.com/library/content/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXTestingApps.html)
473473

474474
### Screen readers {#screen-readers}

content/docs/hooks-faq.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Starting with 16.8.0, React includes a stable implementation of React Hooks for:
7070

7171
Note that **to enable Hooks, all React packages need to be 16.8.0 or higher**. Hooks won't work if you forget to update, for example, React DOM.
7272

73-
React Native will fully support Hooks in its next stable release.
73+
React Native 0.59 and above support Hooks.
7474

7575
### Do I need to rewrite all my class components? {#do-i-need-to-rewrite-all-my-class-components}
7676

@@ -675,7 +675,9 @@ function Counter() {
675675
}
676676
```
677677

678-
Specifying `[count]` as a list of dependencies would fix the bug, but would cause the interval to be reset on every change. That may not be desirable. To fix this, we can use the [functional update form of `setState`](/docs/hooks-reference.html#functional-updates). It lets us specify *how* the state needs to change without referencing the *current* state:
678+
The empty set of dependencies, `[]`, means that the effect will only run once when the component mounts, and not on every re-render. The problem is that inside the `setInterval` callback, the value of `count` does not change, because we've created a closure with the value of `count` set to `0` as it was when the effect callback ran. Every second, this callback then calls `setCount(0 + 1)`, so the count never goes above 1.
679+
680+
Specifying `[count]` as a list of dependencies would fix the bug, but would cause the interval to be reset on every change. Effectively, each `setInterval` would get one chance to execute before being cleared (similar to a `setTimout`.) That may not be desirable. To fix this, we can use the [functional update form of `setState`](/docs/hooks-reference.html#functional-updates). It lets us specify *how* the state needs to change without referencing the *current* state:
679681

680682
```js{6,9}
681683
function Counter() {
@@ -694,6 +696,8 @@ function Counter() {
694696

695697
(The identity of the `setCount` function is guaranteed to be stable so it's safe to omit.)
696698

699+
Now, the `setInterval` callback executes once a second, but each time the inner call to `setCount` can use an up-to-date value for `count` (called `c` in the callback here.)
700+
697701
In more complex cases (such as if one state depends on another state), try moving the state update logic outside the effect with the [`useReducer` Hook](/docs/hooks-reference.html#usereducer). [This article](https://adamrackis.dev/state-and-use-reducer/) offers an example of how you can do this. **The identity of the `dispatch` function from `useReducer` is always stable** — even if the reducer function is declared inside the component and reads its props.
698702

699703
As a last resort, if you want something like `this` in a class, you can [use a ref](/docs/hooks-faq.html#is-there-something-like-instance-variables) to hold a mutable variable. Then you can write and read to it. For example:

0 commit comments

Comments
 (0)