Skip to content

Commit 3c64336

Browse files
Merge pull request #207 from reactjs/sync-4e6cee1f
Sync with reactjs.org @ 4e6cee1
2 parents 44df873 + 927e8fb commit 3c64336

35 files changed

Lines changed: 439 additions & 237 deletions

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
Note to Hacktoberfest 🎃 participants:
12

3+
While we appreciate the enthusiasm, we are experiencing a high volume of drive-by pull requests (one-line changes, README tweaks, etc.). Please remember that hundreds of people are subscribed to this repo and will receive notifications for these PRs. Spam submissions will be closed and won't count towards your Hacktoberfest goals.
24

5+
Please search for issues tagged [`good first issue`][gfi] or [`hacktoberfest`][hacktoberfest] to find things to work on.
6+
7+
You can also search [all of GitHub][all].
8+
9+
[gfi]: https://github.com/reactjs/reactjs.org/issues?q=is%3Aissue+is%3Aopen+label%3A"good+first+issue"
10+
[hacktoberfest]: https://github.com/reactjs/reactjs.org/issues?q=is%3Aissue+is%3Aopen+label%3A"good+first+issue"
11+
[all]: https://github.com/search?q=is%3Aissue+hacktoberfest
312
<!--
413
514
Thank you for the PR! Contributors like you keep React awesome!

content/blog/2016-07-11-introducing-reacts-error-code-system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Prior to this release, we stripped out error messages at build-time and this is
99

1010
> Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.
1111
12-
In order to make debugging in production easier, we're introducing an Error Code System in [15.2.0](https://github.com/facebook/react/releases/tag/v15.2.0). We developed a [gulp script](https://github.com/facebook/react/blob/master/scripts/error-codes/gulp-extract-errors.js) that collects all of our `invariant` error messages and folds them to a [JSON file](https://github.com/facebook/react/blob/master/scripts/error-codes/codes.json), and at build-time Babel uses the JSON to [rewrite](https://github.com/facebook/react/blob/master/scripts/error-codes/replace-invariant-error-codes.js) our `invariant` calls in production to reference the corresponding error IDs. Now when things go wrong in production, the error that React throws will contain a URL with an error ID and relevant information. The URL will point you to a page in our documentation where the original error message gets reassembled.
12+
In order to make debugging in production easier, we're introducing an Error Code System in [15.2.0](https://github.com/facebook/react/releases/tag/v15.2.0). We developed a [script](https://github.com/facebook/react/blob/master/scripts/error-codes/extract-errors.js) that collects all of our `invariant` error messages and folds them to a [JSON file](https://github.com/facebook/react/blob/master/scripts/error-codes/codes.json), and at build-time Babel uses the JSON to [rewrite](https://github.com/facebook/react/blob/master/scripts/error-codes/transform-error-messages.js) our `invariant` calls in production to reference the corresponding error IDs. Now when things go wrong in production, the error that React throws will contain a URL with an error ID and relevant information. The URL will point you to a page in our documentation where the original error message gets reassembled.
1313

1414
While we hope you don't see errors often, you can see how it works [here](/docs/error-decoder.html?invariant=109&args[]=Foo). This is what the same error from above will look like:
1515

content/blog/2020-08-10-react-v17-rc.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Most effects don't need to delay screen updates, so React runs them asynchronous
164164

165165
However, when a component is unmounting, effect *cleanup* functions used to run synchronously (similar to `componentWillUnmount` being synchronous in classes). We've found that this is not ideal for larger apps because it slows down large screen transitions (e.g. switching tabs).
166166

167-
**In React 17, the effect cleanup function will always runs asynchronously -- for example, if the component is unmounting, the cleanup will run _after_ the screen has been updated.**
167+
**In React 17, the effect cleanup function always runs asynchronously -- for example, if the component is unmounting, the cleanup runs _after_ the screen has been updated.**
168168

169169
This mirrors how the effects themselves run more closely. In the rare cases where you might want to rely on the synchronous execution, you can switch to `useLayoutEffect` instead.
170170

@@ -272,20 +272,20 @@ We encourage you to try React 17.0 Release Candidate soon and [raise any issues]
272272
To install React 17 RC with npm, run:
273273

274274
```bash
275-
npm install react@17.0.0-rc.2 react-dom@17.0.0-rc.2
275+
npm install react@17.0.0-rc.3 react-dom@17.0.0-rc.3
276276
```
277277

278278
To install React 17 RC with Yarn, run:
279279

280280
```bash
281-
yarn add react@17.0.0-rc.2 react-dom@17.0.0-rc.2
281+
yarn add react@17.0.0-rc.3 react-dom@17.0.0-rc.3
282282
```
283283

284284
We also provide UMD builds of React via a CDN:
285285

286286
```html
287-
<script crossorigin src="https://unpkg.com/react@17.0.0-rc.2/umd/react.production.min.js"></script>
288-
<script crossorigin src="https://unpkg.com/react-dom@17.0.0-rc.2/umd/react-dom.production.min.js"></script>
287+
<script crossorigin src="https://unpkg.com/react@17.0.0-rc.3/umd/react.production.min.js"></script>
288+
<script crossorigin src="https://unpkg.com/react-dom@17.0.0-rc.3/umd/react-dom.production.min.js"></script>
289289
```
290290

291291
Refer to the documentation for [detailed installation instructions](/docs/installation.html).
@@ -356,6 +356,7 @@ Refer to the documentation for [detailed installation instructions](/docs/instal
356356
* Remove `unstable_discreteUpdates` and `unstable_flushDiscreteUpdates`. ([@trueadm](https://github.com/trueadm) in [#18825](https://github.com/facebook/react/pull/18825))
357357
* Remove the `timeoutMs` argument. ([@acdlite](https://github.com/acdlite) in [#19703](https://github.com/facebook/react/pull/19703))
358358
* Disable `<div hidden />` prerendering in favor of a different future API. ([@acdlite](https://github.com/acdlite) in [#18917](https://github.com/facebook/react/pull/18917))
359+
* Add `unstable_expectedLoadTime` to Suspense for CPU-bound trees. ([@acdlite](https://github.com/acdlite) in [#19936](https://github.com/facebook/react/pull/19936))
359360
* Add an experimental `unstable_useOpaqueIdentifier` Hook. ([@lunaruan](https://github.com/lunaruan) in [#17322](https://github.com/facebook/react/pull/17322))
360361
* Add an experimental `unstable_startTransition` API. ([@rickhanlonii](https://github.com/rickhanlonii) in [#19696](https://github.com/facebook/react/pull/19696))
361362
* Using `act` in the test renderer no longer flushes Suspense fallbacks. ([@acdlite](https://github.com/acdlite) in [#18596](https://github.com/facebook/react/pull/18596))

content/blog/2020-09-22-introducing-the-new-jsx-transform.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Upgrading to the new transform is completely optional, but it has a few benefits
2020
**This upgrade will not change the JSX syntax and is not required.** The old JSX transform will keep working as usual, and there are no plans to remove the support for it.
2121

2222

23-
[React 17 RC](/blog/2020/08/10/react-v17-rc.html) already includes support for the new transform, so go give it a try! To make it easier to adopt, after React 17 is released, we also plan to backport its support to React 16.x, React 15.x, and React 0.14.x. You can find the upgrade instructions for different tools [below](#how-to-upgrade-to-the-new-jsx-transform).
23+
[React 17 RC](/blog/2020/08/10/react-v17-rc.html) already includes support for the new transform, so go give it a try! To make it easier to adopt, **we've also backported its support** to React 16.14.0, React 15.7.0, and React 0.14.10. You can find the upgrade instructions for different tools [below](#how-to-upgrade-to-the-new-jsx-transform).
2424

2525
Now let's take a closer look at the differences between the old and the new transform.
2626

@@ -54,7 +54,7 @@ function App() {
5454
5555
However, this is not perfect:
5656

57-
* Because JSX compiled into `React.createElement`, `React` needed to be in scope if you use JSX.
57+
* Because JSX was compiled into `React.createElement`, `React` needed to be in scope if you used JSX.
5858
* There are some [performance improvements and simplifications](https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#motivation) that `React.createElement` does not allow.
5959

6060
To solve these issues, React 17 introduces two new entry points to the React package that are intended to only be used by compilers like Babel and TypeScript. Instead of transforming JSX to `React.createElement`, **the new JSX transform** automatically imports special functions from those new entry points in the React package and calls them.
@@ -92,7 +92,7 @@ If you aren't ready to upgrade to the new JSX transform or if you are using JSX
9292

9393
If you want to upgrade, you will need two things:
9494

95-
* **A version of React that supports the new transform** (currently, only [React 17 RC](/blog/2020/08/10/react-v17-rc.html) supports it, but after React 17.0 has been released, we plan to make additional compatible releases for 0.14.x, 15.x, and 16.x).
95+
* **A version of React that supports the new transform** ([React 17 RC](/blog/2020/08/10/react-v17-rc.html) and higher supports it, but we've also released React 16.14.0, React 15.7.0, and React 0.14.10 for people who are still on the older major versions).
9696
* **A compatible compiler** (see instructions for different tools below).
9797

9898
Since the new JSX transform doesn't require React to be in scope, [we've also prepared an automated script](#removing-unused-react-imports) that will remove the unnecessary imports from your codebase.
@@ -111,7 +111,7 @@ Gatsby [v2.24.5](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/
111111

112112
>Note
113113
>
114-
>If you get [this Gatsby error](https://github.com/gatsbyjs/gatsby/issues/26979) after upgrading to React `17.0.0-rc.2`, run `npm update` to fix it.
114+
>If you get [this Gatsby error](https://github.com/gatsbyjs/gatsby/issues/26979) after upgrading to React 17 RC, run `npm update` to fix it.
115115
116116
### Manual Babel Setup {#manual-babel-setup}
117117

@@ -172,6 +172,8 @@ Starting from Babel 8, `"automatic"` will be the default runtime for both plugin
172172
> Note
173173
>
174174
> If you use JSX with a library other than React, you can use [the `importSource` option](https://babeljs.io/docs/en/babel-preset-react#importsource) to import from that library instead -- as long as it provides the necessary entry points. Alternatively, you can keep using the classic transform which will continue to be supported.
175+
>
176+
> If you're a library author and you are implementing the `/jsx-runtime` entry point for your library, keep in mind that [there is a case](https://github.com/facebook/react/issues/20031#issuecomment-710346866) in which even the new transform has to fall back to `createElement` for backwards compatibility. In that case, it will auto-import `createElement` directly from the *root* entry point specified by `importSource`.
175177
176178
### ESLint {#eslint}
177179

content/community/conferences.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,36 @@ redirect_from:
88
- "docs/conferences.html"
99
---
1010

11-
Bildiyiniz yerli React.js konfransı varsa, buraya əlavə edin! (Xahiş edirik siyahını xronoloji ardıcıllıqda saxlayasınız)
11+
Do you know of a local React.js conference? Add it here! (Please keep the list chronological)
1212

1313
## Gələcək Konfranslar {#upcoming-conferences}
1414

15-
### React Native EU 2020 {#react-native-eu-2020}
16-
September 3-4, 2020 - remote event
17-
18-
[Website](https://www.react-native.eu/) - [Twitter](https://twitter.com/react_native_eu) - [Facebook](https://www.facebook.com/reactnativeeu/) - [YouTube](https://www.youtube.com/watch?v=m0GfmlGFh3E&list=PLZ3MwD-soTTHy9_88QPLF8DEJkvoB5Tl-) - [Instagram](https://www.instagram.com/reactnative_eu/)
19-
20-
### render(ATL) 2020 {#render-atlanta-2020}
21-
September 13-15, 2020. Atlanta, GA, USA.
22-
23-
[Website](https://renderatl.com) - [Twitter](https://twitter.com/renderATL) - [Instagram](https://www.instagram.com/renderatl/) - [Facebook](https://www.facebook.com/renderatl/) - [LinkedIn](https://www.linkedin.com/company/renderatl)
24-
2515
### React Summit 2020 {#react-summit-2020}
26-
7am PST / 1pm EST / 4pm CEST October 15-16, 2020 - remote event
16+
October 15-16, 2020, 7am PST / 10am EST / 4pm CEST - remote event
2717

2818
[Website](https://reactsummit.com) - [Twitter](https://twitter.com/reactsummit) - [Facebook](https://www.facebook.com/reactamsterdam) - [Videos](https://youtube.com/c/ReactConferences)
2919

30-
<<<<<<< HEAD
31-
## Keçmiş Konfranslar {#past-conferences}
32-
=======
33-
### React Day Berlin 2020 {#react-day-berlin-2020}
34-
November 25-27, 2020 in Berlin, Germany
20+
### React Conf Brasil 2020 {#react-conf-brasil-2020}
21+
November 21, 2020 - remote event
3522

36-
[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.facebook.com/reactdayberlin/) - [Videos](https://www.youtube.com/reactdayberlin)
23+
[Website](https://reactconf.com.br/) - [Twitter](https://twitter.com/reactconfbr) - [Slack](https://react.now.sh/)
3724

3825
### React Next 2020 {#react-next-2020}
39-
December 1, 2020. Tel Aviv, Israel.
26+
December 1-2, 2020 - remote event
4027

4128
[Website](https://react-next.com/) - [Twitter](https://twitter.com/reactnext) - [Facebook](https://www.facebook.com/ReactNext2016/)
4229

43-
## Past Conferences {#past-conferences}
44-
>>>>>>> b3c7f041586b71b31f556403426fcd7cab342535
30+
### render(ATL) 2021 {#render-atlanta-2021}
31+
September 13-15, 2021. Atlanta, GA, USA
32+
33+
[Website](https://renderatl.com) - [Twitter](https://twitter.com/renderATL) - [Instagram](https://www.instagram.com/renderatl/) - [Facebook](https://www.facebook.com/renderatl/) - [LinkedIn](https://www.linkedin.com/company/renderatl)
34+
35+
### React India 2021 {#react-india-2021}
36+
November 12-13, 2021 in Mumbai, India
37+
38+
[Website](https://www.reactindia.io) - [Twitter](https://twitter.com/react_india) - [Facebook](https://www.facebook.com/ReactJSIndia/) - [LinkedIn](https://www.linkedin.com/showcase/14545585) - [YouTube](https://www.youtube.com/channel/UCaFbHCBkPvVv1bWs_jwYt3w/videos) [Website](https://www.reactindia.io) - [Twitter](https://twitter.com/react_india) - [Facebook](https://www.facebook.com/ReactJSIndia/) - [LinkedIn](https://www.linkedin.com/showcase/14545585) - [YouTube](https://www.youtube.com/channel/UCaFbHCBkPvVv1bWs_jwYt3w/videos)
39+
40+
## Keçmiş Konfranslar {#past-conferences}
4541

4642
### React.js Conf 2015 {#reactjs-conf-2015}
4743
January 28 & 29 in Facebook HQ, CA
@@ -474,3 +470,8 @@ May 1, 2020. Streamed online on YouTube.
474470
May 14-15, 2020 in Paris, France
475471

476472
[Website](https://www.react-europe.org) - [Twitter](https://twitter.com/ReactEurope) - [Facebook](https://www.facebook.com/ReactEurope) - [Videos](https://www.youtube.com/c/ReacteuropeOrgConf)
473+
474+
### React Native EU 2020 {#react-native-eu-2020}
475+
September 3-4, 2020 - remote event
476+
477+
[Website](https://www.react-native.eu/) - [Twitter](https://twitter.com/react_native_eu) - [Facebook](https://www.facebook.com/reactnativeeu/) - [YouTube](https://www.youtube.com/watch?v=m0GfmlGFh3E&list=PLZ3MwD-soTTHy9_88QPLF8DEJkvoB5Tl-) - [Instagram](https://www.instagram.com/reactnative_eu/)

content/community/courses.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ permalink: community/courses.html
5151
- [React Tutorial](https://react-tutorial.app) - React-i fləşkartlar ilə addım-addım öyrənmək üçün interaktiv mühit.
5252

5353
- [Road to React](https://www.roadtoreact.com/) - React-in ustası olmaq üçün səyahət.
54+
55+
- [Epic React](https://epicreact.dev/) - Yaxşı Arxitekturalı və Produksiyaya Hazır React applikasiyalarını peşəkar kimi yarat

content/community/meetups.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ Yerli React.js yığıncağınız (meetup) varsa, buraya əlavə edin! (Xahiş e
4848
* [Beijing](https://www.meetup.com/Beijing-ReactJS-Meetup/)
4949

5050
## Colombia {#colombia}
51+
* [Bogotá](https://www.meetup.com/meetup-group-iHIeHykY/)
5152
* [Medellin](https://www.meetup.com/React-Medellin/)
53+
* [Cali](https://www.meetup.com/reactcali/)
5254

5355
## Denmark {#denmark}
5456
* [Aalborg](https://www.meetup.com/Aalborg-React-React-Native-Meetup/)
@@ -147,7 +149,7 @@ Yerli React.js yığıncağınız (meetup) varsa, buraya əlavə edin! (Xahiş e
147149
* [Zurich](https://www.meetup.com/Zurich-ReactJS-Meetup/)
148150

149151
## Turkey {#turkey}
150-
* [Istanbul](https://www.meetup.com/ReactJS-Istanbul/)
152+
* [Istanbul](https://kommunity.com/reactjs-istanbul)
151153

152154
## Ukraine {#ukraine}
153155
* [Kyiv](https://www.meetup.com/Kyiv-ReactJS-Meetup)
@@ -164,6 +166,7 @@ Yerli React.js yığıncağınız (meetup) varsa, buraya əlavə edin! (Xahiş e
164166
* [Cleveland, OH - ReactJS](https://www.meetup.com/Cleveland-React/)
165167
* [Columbus, OH - ReactJS](https://www.meetup.com/ReactJS-Columbus-meetup/)
166168
* [Dallas, TX - ReactJS](https://www.meetup.com/ReactDallas/)
169+
* [Dallas, TX - [Remote] React JS](https://www.meetup.com/React-JS-Group/)
167170
* [Detroit, MI - Detroit React User Group](https://www.meetup.com/Detroit-React-User-Group/)
168171
* [Irvine, CA - ReactJS](https://www.meetup.com/ReactJS-OC/)
169172
* [Kansas City, MO - ReactJS](https://www.meetup.com/Kansas-City-React-Meetup/)

content/community/podcasts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ React-ə hərs olunmuş Podkastlar və React müzakirəsi olan podkast seriyalar
1818

1919
- [React Native Radio](https://devchat.tv/react-native-radio)
2020

21+
- [React Wednesdays](https://www.telerik.com/react-wednesdays) - React dünyasının ən yaxşı və parlaq üzvləri ilə həftəlik canlı yayınlar
22+
2123
## Seriyalar {#episodes}
2224

2325
- [CodeWinds Episode 4](https://codewinds.com/podcast/004.html) - Pit Hantın Cef Barzeviski ilə React haqqında danışığı.

content/docs/addons-animation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class TodoList extends React.Component {
5050
5151
render() {
5252
const items = this.state.items.map((item, i) => (
53-
<div key={item} onClick={() => this.handleRemove(i)}>
53+
<div key={i} onClick={() => this.handleRemove(i)}>
5454
{item}
5555
</div>
5656
));

0 commit comments

Comments
 (0)