Skip to content

Commit 6639840

Browse files
Merge pull request #93 from reactjs/sync-30baecf5
Sync with reactjs.org @ 30baecf
2 parents 9d5808f + 679ceea commit 6639840

File tree

7 files changed

+12
-24
lines changed

7 files changed

+12
-24
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
Note to Hacktoberfest 🎃 participants:
2-
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.
4-
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
121
<!--
132
143
Thank you for the PR! Contributors like you keep React awesome!

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Since the new JSX transform doesn't require React to be in scope, [we've also pr
9999

100100
### Create React App {#create-react-app}
101101

102-
Create React App support [has been added](https://github.com/facebook/create-react-app/pull/9645) and will be available in the [upcoming v4.0 release](https://gist.github.com/iansu/4fab7a9bfa5fa6ebc87a908c62f5340b) which is currently in beta testing.
102+
Create React App [4.0.0](https://github.com/facebook/create-react-app/releases/tag/v4.0.0)+ uses the new transform for compatible React versions.
103103

104104
### Next.js {#nextjs}
105105

@@ -143,7 +143,7 @@ npm update @babel/core @babel/preset-react
143143
yarn upgrade @babel/core @babel/preset-react
144144
```
145145

146-
Currently, the old transform (`"runtime": "classic"`) is the default option. To enable the new transform, you can pass `{"runtime": "automatic"}` as an option to `@babel/plugin-transform-react-jsx` or `@babel/preset-react`:
146+
Currently, the old transform `{"runtime": "classic"}` is the default option. To enable the new transform, you can pass `{"runtime": "automatic"}` as an option to `@babel/plugin-transform-react-jsx` or `@babel/preset-react`:
147147

148148
```js
149149
// If you are using @babel/preset-react
@@ -192,11 +192,11 @@ If you are using [eslint-plugin-react](https://github.com/yannickcr/eslint-plugi
192192

193193
### TypeScript {#typescript}
194194

195-
TypeScript supports the 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 beta](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#jsx-factories).
196196

197197
### Flow {#flow}
198198

199-
Flow supports the new JSX transform in [v0.126.0](https://github.com/facebook/flow/releases/tag/v0.126.0) and up.
199+
Flow supports the new JSX transform in [v0.126.0](https://github.com/facebook/flow/releases/tag/v0.126.0) and up, by adding `react.runtime=automatic` to your Flow configuration options.
200200

201201
## Removing Unused React Imports {#removing-unused-react-imports}
202202

@@ -213,7 +213,6 @@ npx react-codemod update-react-imports
213213
>
214214
>Keep in mind that the codemod output will not always match your project's coding style, so you might want to run [Prettier](https://prettier.io/) after the codemod finishes for consistent formatting.
215215
216-
217216
Running this codemod will:
218217

219218
* Remove all unused React imports as a result of upgrading to the new JSX transform.

content/community/meetups.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet
7575
* [React Berlin](https://www.meetup.com/React-Open-Source/)
7676

7777
## Greece {#greece}
78+
* [Athens](https://www.meetup.com/React-To-React-Athens-MeetUp/)
7879
* [Thessaloniki](https://www.meetup.com/Thessaloniki-ReactJS-Meetup/)
7980

8081
## Hungary {#hungary}

content/docs/concurrent-mode-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function App() {
193193

194194
It took us only seven lines of code to add this transition:
195195

196-
* We've imported the `useTransition` Hook and used it the component that updates the state.
196+
* We've imported the `useTransition` Hook and used it in the component that updates the state.
197197
* We've passed `{timeoutMs: 3000}` to stay on the previous screen for at most 3 seconds.
198198
* We've wrapped our state update into `startTransition` to tell React it's okay to delay it.
199199
* We're using `isPending` to communicate the state transition progress to the user and to disable the button.

content/docs/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The `defaultValue` argument is **only** used when a component does not have a ma
128128

129129
Every Context object comes with a Provider React component that allows consuming components to subscribe to context changes.
130130

131-
Accepts a `value` prop to be passed to consuming components that are descendants of this Provider. One Provider can be connected to many consumers. Providers can be nested to override values deeper within the tree.
131+
The Provider component accepts a `value` prop to be passed to consuming components that are descendants of this Provider. One Provider can be connected to many consumers. Providers can be nested to override values deeper within the tree.
132132

133133
All consumers that are descendants of a Provider will re-render whenever the Provider's `value` prop changes. The propagation from Provider to its descendant consumers (including [`.contextType`](#classcontexttype) and [`useContext`](/docs/hooks-reference.html#usecontext)) is not subject to the `shouldComponentUpdate` method, so the consumer is updated even when an ancestor component skips an update.
134134

content/docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ A React folyamatos adaptációra lett tervezve és **pont annyi Reactet használ
3636

3737
### Online Játszóterek {#online-playgrounds}
3838

39-
Az Online Játszótereken lehetőséged van kipróbálni a React funkcionalitásait. Próbáld ki a Helló Világ sablont [CodePenen](codepen://hello-world), [CodeSandboxon](https://codesandbox.io/s/new), [Glitchen](https://glitch.com/edit/#!/remix/starter-react-template), vagy [Stackblitzen](https://stackblitz.com/fork/react).
39+
Az Online Játszótereken lehetőséged van kipróbálni a React funkcionalitásait. Próbáld ki a Helló Világ sablont [CodePenen](codepen://hello-world), [CodeSandboxon](https://codesandbox.io/s/new), vagy [Stackblitzen](https://stackblitz.com/fork/react).
4040

4141
Ha a saját kódszerkesztődet használnád, [letöltheted ezt a HTML fájlt](https://raw.githubusercontent.com/reactjs/reactjs.org/master/static/html/single-file-example.html), szerkesztheted és megnyithatod a lokális böngésződben. Ez egy lassú kód transzformációt tartalmaz, így ezt csak a példakód futtatásához ajánljuk.
4242

content/docs/reference-events.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Az alábbi eseménykezelők egy esemény által lettek elindítva a "bubbling" f
5555
- [Fókuszálás-események {#focus-events}](#fókuszálás-események-focus-events)
5656
- [onFocus](#onfocus)
5757
- [onBlur](#onblur)
58-
- [Fókuszálás és fókuszálás elvesztésének detektálása](#fókuszálás-és-fókuszálás-elvesztésének-detektálása)
58+
- [Fókuszálás és fókuszálás elvesztésének detektálása {#detecting-focus-entering-and-leaving}](#fókuszálás-és-fókuszálás-elvesztésének-detektálása)
5959
- [Űrlapesemények {#form-events}](#űrlapesemények-form-events)
6060
- [Általános események {#generic-events}](#általános-események-generic-events)
6161
- [Egéresemények {#mouse-events}](#egéresemények-mouse-events)
@@ -152,7 +152,7 @@ Tulajdonságok:
152152
DOMEventTarget relatedTarget
153153
```
154154

155-
#### onFocus
155+
#### onFocus {#onfocus}
156156

157157
Az `onFocus` esemény akkor van meghívva, amikor az elem (vagy valamelyik elem azon belül) fókuszálva van. Például amikor a felhasználó egy szöveg beivteli mezőre kattint.
158158

@@ -169,7 +169,7 @@ function Example() {
169169
}
170170
```
171171

172-
#### onBlur
172+
#### onBlur {#onblur}
173173

174174
Az `onBlur` esemény akkor van meghívva, amikor a fókuszálás elhagyta az elemet (vagy valamelyik elemet azon belül). Például akkor, amikor a felhasználó egy fókuszált szöveg beviteli mezőn kívülre kattint.
175175

@@ -186,7 +186,7 @@ function Example() {
186186
}
187187
```
188188

189-
#### Fókuszálás és fókuszálás elvesztésének detektálása
189+
#### Fókuszálás és fókuszálás elvesztésének detektálása {#detecting-focus-entering-and-leaving}
190190

191191
You can use the `currentTarget` and `relatedTarget` to differentiate if the focusing or blurring events originated from _outside_ of the parent element. Here is a demo you can copy and paste that shows how to detect focusing a child, focusing the element itself, and focus entering or leaving the whole subtree.
192192
Használhatod a `currentTarget` és `releatedTarget`-et, hogy meg tudd különböztetni, hogy a fókuszálás vagy fókuszálás elvesztésének eseménye a szülő komponensen _kívülről_ jön-e. Itt egy demo amit kimásolhatsz és beilleszthetsz, ami megmutatja hogyan detektálj fókuszálást egy gyermek elemre, magára az elemre, és fókuszálást vagy fókuszálás elvesztést a teljes alfára.
@@ -226,7 +226,6 @@ function Example() {
226226
}
227227
```
228228

229-
230229
* * *
231230

232231
### Űrlapesemények {#form-events}

0 commit comments

Comments
 (0)