Skip to content

Commit b164c80

Browse files
authored
Merge pull request #270 from reactjs/sync-4fc709d0
Sync with reactjs.org @ 4fc709d
2 parents e4b8fe0 + dbf0899 commit b164c80

14 files changed

+343
-286
lines changed

content/blog/2017-09-08-dom-attributes-in-react-16.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ In React 16, we are making a change. Now, any unknown attributes will end up in
2929
React has always provided a JavaScript-centric API to the DOM. Since React components often take both custom and DOM-related props, it makes sense for React to use the `camelCase` convention just like the DOM APIs:
3030

3131
```js
32-
<div tabIndex="-1" />
32+
<div tabIndex={-1} />
3333
```
3434

3535
This has not changed. However, the way we enforced it in the past forced us to maintain a whitelist of all valid React DOM attributes in the bundle:
@@ -55,10 +55,10 @@ With the new approach, both of these problems are solved. With React 16, you can
5555

5656
```js
5757
// Yes, please
58-
<div tabIndex="-1" />
58+
<div tabIndex={-1} />
5959

6060
// Warning: Invalid DOM property `tabindex`. Did you mean `tabIndex`?
61-
<div tabindex="-1" />
61+
<div tabindex={-1} />
6262
```
6363

6464
In other words, the way you use DOM components in React hasn't changed, but now you have some new capabilities.
@@ -120,7 +120,7 @@ Below is a detailed list of them.
120120
* **Known attributes with a different canonical React name:**
121121

122122
```js
123-
<div tabindex="-1" />
123+
<div tabindex={-1} />
124124
<div class="hi" />
125125
```
126126

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ If you are using [eslint-plugin-react](https://github.com/yannickcr/eslint-plugi
192192

193193
### TypeScript {#typescript}
194194

195-
TypeScript supports the new JSX transform in [v4.1 beta](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#jsx-factories).
195+
TypeScript supports the new JSX transform in [v4.1](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/#jsx-factories) and up.
196196

197197
### Flow {#flow}
198198

content/community/conferences.md

Lines changed: 270 additions & 269 deletions
Large diffs are not rendered by default.

content/community/meetups.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ permalink: community/meetups.html
88

99
Do you have a local React.js meetup? Add it here! (Please keep the list alphabetical)
1010

11+
## Albania {#albania}
12+
* [Tirana](https://www.meetup.com/React-User-Group-Albania/)
13+
1114
## Argentina {#argentina}
1215
* [Rosario](https://www.meetup.com/es/reactrosario)
1316

@@ -40,9 +43,11 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet
4043
* [Bolivia](https://www.meetup.com/ReactBolivia/)
4144

4245
## Canada {#canada}
46+
* [Halifax, NS](https://www.meetup.com/Halifax-ReactJS-Meetup/)
4347
* [Montreal, QC - React Native](https://www.meetup.com/fr-FR/React-Native-MTL/)
4448
* [Vancouver, BC](https://www.meetup.com/ReactJS-Vancouver-Meetup/)
4549
* [Ottawa, ON](https://www.meetup.com/Ottawa-ReactJS-Meetup/)
50+
* [Toronto, ON](https://www.meetup.com/Toronto-React-Native/events/)
4651

4752
## China {#china}
4853
* [Beijing](https://www.meetup.com/Beijing-ReactJS-Meetup/)
@@ -99,6 +104,9 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet
99104
## Israel {#israel}
100105
* [Tel Aviv](https://www.meetup.com/ReactJS-Israel/)
101106

107+
## Italy {#italy}
108+
* [Milan](https://www.meetup.com/React-JS-Milano/)
109+
102110
## Malaysia {#malaysia}
103111
* [Kuala Lumpur](https://www.kl-react.com/)
104112
* [Penang](https://www.facebook.com/groups/reactpenang/)

content/docs/addons-perf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ In addition to giving you an overview of your app's overall performance, `Perf`
2727
See these articles for an introduction to React performance tooling:
2828

2929
- ["How to Benchmark React Components"](https://medium.com/code-life/how-to-benchmark-react-components-the-quick-and-dirty-guide-f595baf1014c)
30-
- ["Performance Engineering with React"](https://benchling.engineering/performance-engineering-with-react/)
31-
- ["A Deep Dive into React Perf Debugging"](https://benchling.engineering/deep-dive-react-perf-debugging/)
30+
- ["Performance Engineering with React"](https://benchling.engineering/performance-engineering-with-react-e03013e53285)
31+
- ["A Deep Dive into React Perf Debugging"](https://benchling.engineering/a-deep-dive-into-react-perf-debugging-fd2063f5a667)
3232

3333
### Development vs. Production Builds {#development-vs-production-builds}
3434

content/docs/faq-versioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ React는 [유의적 버전 (semver)](https://semver.org/) 원칙을 따릅니다
2222

2323
### 호환성이 유지되지 않는 변경 {#breaking-changes}
2424

25-
호환성이 유지되지 않는 변경은 모든 사람에게 불편할 수 있습니다. 그래서 주 버전 배포는 최소화하도록 노력합니다. 예를 들어, React 15는 2016년 4월에 배포되었고 React 16은 2017년 9월에 배포되었습니다. 그리고 React 17은 2020년에 가능할 수도 있습니다.
25+
호환성이 유지되지 않는 변경은 모든 사람에게 불편할 수 있습니다. 그래서 주 버전 배포는 최소화하도록 노력합니다. 예를 들어, React 15는 2016년 4월에 배포되었고 React 16은 2017년 9월에 배포되었습니다. 그리고 React 17은 2020년 10월에 배포되었습니다.
2626

2727
대신 부 버전을 변경시킨 배포로 새 기능을 배포합니다. 부 버전 배포는 겸손한 이름에도 불구하고, 주 버전 배포보다 가끔 더 흥미롭고 주목할 만합니다.
2828

content/docs/higher-order-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Higher-order components come with a few caveats that aren't immediately obvious
320320

321321
### Don't Use HOCs Inside the render Method {#dont-use-hocs-inside-the-render-method}
322322

323-
React's diffing algorithm (called reconciliation) uses component identity to determine whether it should update the existing subtree or throw it away and mount a new one. If the component returned from `render` is identical (`===`) to the component from the previous render, React recursively updates the subtree by diffing it with the new one. If they're not equal, the previous subtree is unmounted completely.
323+
React's diffing algorithm (called [Reconciliation](/docs/reconciliation.html)) uses component identity to determine whether it should update the existing subtree or throw it away and mount a new one. If the component returned from `render` is identical (`===`) to the component from the previous render, React recursively updates the subtree by diffing it with the new one. If they're not equal, the previous subtree is unmounted completely.
324324

325325
Normally, you shouldn't need to think about this. But it matters for HOCs because it means you can't apply a HOC to a component within the render method of a component:
326326

content/docs/legacy-event-pooling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permalink: docs/legacy-event-pooling.html
1212
>
1313
>[Read more](/blog/2020/08/10/react-v17-rc.html#no-event-pooling) about this change in React 17.
1414
15-
The [`SyntheticEvent`](/docs/events.html) objects are pooled. This means that the `SyntheticEvent` object will be reused and all properties will be nullified after the event event handler has been called. For example, this won't work:
15+
The [`SyntheticEvent`](/docs/events.html) objects are pooled. This means that the `SyntheticEvent` object will be reused and all properties will be nullified after the event handler has been called. For example, this won't work:
1616

1717
```javascript
1818
function handleChange(e) {

content/docs/reference-dom-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ React 16부터는 모든 표준 [또는 사용자 정의](/blog/2017/09/08/dom-a
134134
React는 항상 JavaScript 중심 API를 DOM에 제공했습니다. React 컴포넌트는 사용자 지정 및 DOM 관련 props 둘 다 받아들이기 때문에, React는 DOM API처럼 camelCase를 사용합니다.
135135

136136
```js
137-
<div tabIndex="-1" /> // Just like node.tabIndex DOM API
137+
<div tabIndex={-1} /> // Just like node.tabIndex DOM API
138138
<div className="Button" /> // Just like node.className DOM API
139139
<input readOnly={true} /> // Just like node.readOnly DOM API
140140
```

content/docs/reference-javascript-environment-requirements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ category: Reference
66
permalink: docs/javascript-environment-requirements.html
77
---
88

9-
React 16 버전은 컬렉션 자료형인 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)[Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)을 사용합니다. 이 기능을 자체적으로 지원하지 않거나(예. IE 11 미만) 지원은 하지만 잘 호환되지 않는(예. IE 11) 오래된 브라우저나 기기에서도 React를 사용해야 한다면 애플리케이션에 [core-js](https://github.com/zloirock/core-js)[babel-polyfill](https://babeljs.io/docs/usage/polyfill/) 같은 전역 폴리필(polyfill)을 포함하는 것도 고려해보세요.
9+
React 16 버전은 컬렉션 자료형인 [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)[Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)을 사용합니다. 이 기능을 자체적으로 지원하지 않거나(예. IE 11 미만) 지원은 하지만 잘 호환되지 않는(예. IE 11) 오래된 브라우저나 기기에서도 React를 사용해야 한다면 애플리케이션에 [core-js](https://github.com/zloirock/core-js) 같은 전역 폴리필(polyfill)을 포함하는 것도 고려해보세요.
1010

1111
다음은 오래된 브라우저 지원을 위해 core-js 폴리필을 적용한 환경에서 React 16 버전을 사용하는 예시입니다.
1212

0 commit comments

Comments
 (0)