Skip to content

Commit 2d91592

Browse files
authored
Merge branch 'master' into handling-events
2 parents e89db24 + ae167f6 commit 2d91592

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1435
-224
lines changed

.circleci/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ jobs:
1818
- run:
1919
name: Check Prettier, ESLint, Flow
2020
command: yarn ci-check
21+
- run:
22+
name: Test Textlint
23+
command: yarn test:textlint

.github/PULL_REQUEST_TEMPLATE.md

+8
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@ https://github.com/reactjs/reactjs.org/blob/master/CONTRIBUTING.md
1111
If your PR references an existing issue, please add the issue number below
1212
1313
-->
14+
15+
## Progress
16+
17+
- [ ] 번역 초안 작성(Draft translation)
18+
- [ ] [공통 스타일 가이드 확인 (Check the common style guide)](link)
19+
- [ ] [용어 확인 (Check the term)](link)
20+
- [ ] [맞춤법 검사 (Spelling check)](http://speller.cs.pusan.ac.kr/)
21+
- [ ] 리뷰 반영 (Resolve reviews)

.textlintrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
filters: {
3+
comments: true,
4+
},
5+
formatterName: 'stylish',
6+
};

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The documentation is divided into several sections with a different tone and pur
5757

5858
## Translation
5959

60-
If you are interesting in translating `reactjs.org`, please see the current translation efforts at [isreactreadyyet.com](https://www.isreactreadyyet.com).
60+
If you are interested in translating `reactjs.org`, please see the current translation efforts at [isreacttranslatedyet.com](https://www.isreacttranslatedyet.com/).
6161

6262

6363
If your language does not have a translation and you would like to create one, please follow the instructions at [reactjs.org Translations](https://github.com/reactjs/reactjs.org-translation#translating-reactjsorg).

UNIVERSAL-STYLE-GUIDE.md

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# 공통 스타일 가이드
2+
3+
이 문서는 **모든** 언어에 적용돼야 할 규칙을 설명합니다.
4+
5+
## 제목 아이디
6+
7+
모든 제목에는 다음과 같이 아이디가 명시적으로 설정되어 있습니다.
8+
9+
```md
10+
## Try React {#try-react}
11+
```
12+
13+
**아이디는 번역하면 안 됩니다!** 이 아이디는 탐색을 위해 사용되므로 번역하면 아래처럼 외부에서 문서가 참조될 때 링크가 깨질 수 있습니다.
14+
15+
```md
16+
자세한 내용은 [시작 부분](/getting-started#try-react)을 참조해주세요.
17+
```
18+
19+
✅ 권장
20+
21+
```md
22+
## React 시도해보기 {#try-react}
23+
```
24+
25+
❌ 금지:
26+
27+
```md
28+
## React 시도해보기 {#react-시도해보기}
29+
```
30+
31+
이는 위에 있는 링크를 깨지게 만듭니다.
32+
33+
## 코드에 있는 문자
34+
35+
주석을 제외한 모든 코드는 번역하지 않고 그대로 놔둬 주세요. 선택적으로 문자열에 있는 텍스트를 수정할 수 있지만, 코드를 참조하는 문자열은 번역하지 않도록 주의해주세요.
36+
37+
예시는 다음과 같습니다.
38+
```js
39+
// Example
40+
const element = <h1>Hello, world</h1>;
41+
ReactDOM.render(element, document.getElementById('root'));
42+
```
43+
44+
✅ 권장
45+
46+
```js
47+
// 예시
48+
const element = <h1>Hello, world</h1>;
49+
ReactDOM.render(element, document.getElementById('root'));
50+
```
51+
52+
✅ 허용:
53+
54+
```js
55+
// 예시
56+
const element = <h1>안녕 세상</h1>;
57+
ReactDOM.render(element, document.getElementById('root'));
58+
```
59+
60+
❌ 금지:
61+
62+
```js
63+
// 예시
64+
const element = <h1>안녕 세상</h1>;
65+
// "root"는 HTML 엘리먼트의 아이디를 의미합니다.
66+
// 번역하지 마세요.
67+
ReactDOM.render(element, document.getElementById('뿌리'));
68+
```
69+
70+
❌ 절대 금지:
71+
72+
```js
73+
// 예시
74+
const 요소 = <h1>안녕 세상</h1>;
75+
ReactDOM.그리다(요소, 문서.아이디로부터_엘리먼트_가져오기('뿌리'));
76+
```
77+
78+
## 외부 링크
79+
80+
외부 링크가 [MDN]이나 [Wikipedia]같은 참고 문헌의 문서에 연결되어 있고 해당 문서가 자국어로 잘 번역되어 있다면 번역 문서를 링크하는 것도 고려해보세요.
81+
82+
[MDN]: https://developer.mozilla.org/en-US/
83+
[Wikipedia]: https://en.wikipedia.org/wiki/Main_Page
84+
85+
예시는 다음과 같습니다.
86+
87+
```md
88+
React elements are [immutable](https://en.wikipedia.org/wiki/Immutable_object).
89+
```
90+
91+
✅ 허용:
92+
93+
```md
94+
React 엘리먼트는 [불변객체](https://ko.wikipedia.org/wiki/불변객체)입니다.
95+
```
96+
97+
외부 링크를 대체할 만한 자국어 자료가 없다면 (Stack Overflow, YouTube 비디오 등) 영어 링크를 사용해주세요.

content/blog/2015-03-30-community-roundup-26.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Colin also [blogged about his experience using React Native](http://blog.scottlo
2929

3030
Spencer Ahrens and I had the great pleasure to talk about React Native on [The Changelog](https://thechangelog.com/149/) podcast. It was really fun to chat for an hour, I hope that you'll enjoy listening to it. :)
3131

32-
<audio src="http://fdlyr.co/d/changelog/cdn.5by5.tv/audio/broadcasts/changelog/2015/changelog-149.mp3" controls="controls" style="width: 100%"></audio>
32+
<audio src="https://cdn.changelog.com/uploads/podcast/149/the-changelog-149.mp3" controls="controls" style="width: 100%"></audio>
3333

3434

3535
## Hacker News {#hacker-news}

content/blog/2015-08-11-relay-technical-preview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ While React simplified the process of developing complex user-interfaces, it lef
1313

1414
Declarative data-fetching means that Relay applications specify *what* data they need, not *how* to fetch that data. Just as React uses a description of the desired UI to manage view updates, Relay uses a data description in the form of GraphQL queries. Given these descriptions, Relay coalesces queries into batches for efficiency, manages error-prone asynchronous logic, caches data for performance, and automatically updates views as data changes.
1515

16-
Relay is also component-oriented, extending the notion of a React component to include a description of what data is necessary to render it. This colocation allows developers to reason locally about their application and eliminates bugs such as under- or over-fetching data.
16+
Relay is also component-oriented, extending the notion of a React component to include a description of what data is necessary to render it. This collocation allows developers to reason locally about their application and eliminates bugs such as under- or over-fetching data.
1717

1818
Relay is in use at Facebook in production apps, and we're using it more and more because *Relay lets developers focus on their products and move fast*. It's working for us and we'd like to share it with the community.
1919

content/blog/2018-09-10-introducing-the-react-profiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ It also shows that each time it rendered, it was the most "expensive" component
140140

141141
To view this chart, either double-click on a component _or_ select a component and click on the blue bar chart icon in the right detail pane.
142142
You can return to the previous chart by clicking the "x" button in the right detail pane.
143-
You can aso double click on a particular bar to view more information about that commit.
143+
You can also double click on a particular bar to view more information about that commit.
144144

145145
![How to view all renders for a specific component](../images/blog/introducing-the-react-profiler/see-all-commits-for-a-fiber.gif)
146146

content/community/conferences.md

+15
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Do you know of a local React.js conference? Add it here! (Please keep the list c
1616
January 31, 2019 in Tehran, Iran
1717
[Website](http://reactiran.com) - [Instagram](https://www.instagram.com/reactiran/)
1818

19+
### Reactathon 2019 {#reactathon-2019}
20+
March 30-31, 2019 in San Francisco, USA
21+
22+
[Website](https://www.reactathon.com/) - [Twitter](https://twitter.com/reactathon)
23+
1924
### App.js Conf 2019 {#appjs-conf-2019}
2025
April 4-5, 2019 in Kraków, Poland
2126

@@ -31,11 +36,21 @@ May 23-24, 2019 in Paris, France
3136

3237
[Website](https://www.react-europe.org) - [Twitter](https://twitter.com/ReactEurope) - [Facebook](https://www.facebook.com/ReactEurope) - [Videos](https://www.youtube.com/c/ReacteuropeOrgConf)
3338

39+
### React Conf Armenia 2019 {#react-conf-am-19}
40+
May 25, 2019 in Yerevan, Armenia
41+
42+
[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)
43+
3444
### React Norway 2019 {#react-norway-2019}
3545
June 12, 2019. Larvik, Norway
3646

3747
[Website](https://reactnorway.com) - [Twitter](https://twitter.com/ReactNorway)
3848

49+
### React Loop 2019 {#react-loop-2019}
50+
June 21, 2019 Chicago, Illinois USA
51+
52+
[Website](https://reactloop.com) - [Twitter](https://twitter.com/ReactLoop)
53+
3954
### ComponentsConf 2019 {#componentsconf-2019}
4055
September 6, 2019 in Melbourne, Australia
4156
[Website](https://www.componentsconf.com.au/) - [Twitter](https://twitter.com/componentsconf)

content/docs/accessibility.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ The [Web Content Accessibility Guidelines](https://www.w3.org/WAI/intro/wcag) pr
1919
The following WCAG checklists provide an overview:
2020

2121
- [WCAG checklist from Wuhcag](https://www.wuhcag.com/wcag-checklist/)
22-
- [WCAG checklist from WebAIM](http://webaim.org/standards/wcag/checklist)
23-
- [Checklist from The A11Y Project](http://a11yproject.com/checklist.html)
22+
- [WCAG checklist from WebAIM](https://webaim.org/standards/wcag/checklist)
23+
- [Checklist from The A11Y Project](https://a11yproject.com/checklist.html)
2424

2525
### WAI-ARIA {#wai-aria}
2626

@@ -114,7 +114,7 @@ Every HTML form control, such as `<input>` and `<textarea>`, needs to be labeled
114114
The following resources show us how to do this:
115115

116116
- [The W3C shows us how to label elements](https://www.w3.org/WAI/tutorials/forms/labels/)
117-
- [WebAIM shows us how to label elements](http://webaim.org/techniques/forms/controls)
117+
- [WebAIM shows us how to label elements](https://webaim.org/techniques/forms/controls)
118118
- [The Paciello Group explains accessible names](https://www.paciellogroup.com/blog/2017/04/what-is-an-accessible-name/)
119119

120120
Although these standard HTML practices can be directly used in React, note that the `for` attribute is written as `htmlFor` in JSX:
@@ -129,13 +129,13 @@ Although these standard HTML practices can be directly used in React, note that
129129
Error situations need to be understood by all users. The following link shows us how to expose error texts to screen readers as well:
130130

131131
- [The W3C demonstrates user notifications](https://www.w3.org/WAI/tutorials/forms/notifications/)
132-
- [WebAIM looks at form validation](http://webaim.org/techniques/formvalidation/)
132+
- [WebAIM looks at form validation](https://webaim.org/techniques/formvalidation/)
133133

134134
## Focus Control {#focus-control}
135135

136136
Ensure that your web application can be fully operated with the keyboard only:
137137

138-
- [WebAIM talks about keyboard accessibility](http://webaim.org/techniques/keyboard/)
138+
- [WebAIM talks about keyboard accessibility](https://webaim.org/techniques/keyboard/)
139139

140140
### Keyboard focus and focus outline {#keyboard-focus-and-focus-outline}
141141

@@ -152,13 +152,13 @@ Provide a mechanism to allow users to skip past navigation sections in your appl
152152
Skiplinks or Skip Navigation Links are hidden navigation links that only become visible when keyboard users interact with the page. They are very easy to implement with
153153
internal page anchors and some styling:
154154

155-
- [WebAIM - Skip Navigation Links](http://webaim.org/techniques/skipnav/)
155+
- [WebAIM - Skip Navigation Links](https://webaim.org/techniques/skipnav/)
156156

157157
Also use landmark elements and roles, such as `<main>` and `<aside>`, to demarcate page regions as assistive technology allow the user to quickly navigate to these sections.
158158

159159
Read more about the use of these elements to enhance accessibility here:
160160

161-
- [Accessible Landmarks](http://www.scottohara.me/blog/2018/03/03/landmarks.html)
161+
- [Accessible Landmarks](https://www.scottohara.me/blog/2018/03/03/landmarks.html)
162162

163163
### Programmatically managing focus {#programmatically-managing-focus}
164164

@@ -387,7 +387,7 @@ These are toolboxes filled with HTML attributes that are fully supported in JSX
387387
Each type of widget has a specific design pattern and is expected to function in a certain way by users and user agents alike:
388388

389389
- [WAI-ARIA Authoring Practices - Design Patterns and Widgets](https://www.w3.org/TR/wai-aria-practices/#aria_ex)
390-
- [Heydon Pickering - ARIA Examples](http://heydonworks.com/practical_aria_examples/)
390+
- [Heydon Pickering - ARIA Examples](https://heydonworks.com/practical_aria_examples/)
391391
- [Inclusive Components](https://inclusive-components.design/)
392392

393393
## Other Points for Consideration {#other-points-for-consideration}
@@ -396,7 +396,7 @@ Each type of widget has a specific design pattern and is expected to function in
396396

397397
Indicate the human language of page texts as screen reader software uses this to select the correct voice settings:
398398

399-
- [WebAIM - Document Language](http://webaim.org/techniques/screenreader/#language)
399+
- [WebAIM - Document Language](https://webaim.org/techniques/screenreader/#language)
400400

401401
### Setting the document title {#setting-the-document-title}
402402

@@ -412,15 +412,15 @@ Ensure that all readable text on your website has sufficient color contrast to r
412412

413413
- [WCAG - Understanding the Color Contrast Requirement](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html)
414414
- [Everything About Color Contrast And Why You Should Rethink It](https://www.smashingmagazine.com/2014/10/color-contrast-tips-and-tools-for-accessibility/)
415-
- [A11yProject - What is Color Contrast](http://a11yproject.com/posts/what-is-color-contrast/)
415+
- [A11yProject - What is Color Contrast](https://a11yproject.com/posts/what-is-color-contrast/)
416416

417-
It can be tedious to manually calculate the proper color combinations for all cases in your website so instead, you can [calculate an entire accessible color palette with Colorable](http://jxnblk.com/colorable/).
417+
It can be tedious to manually calculate the proper color combinations for all cases in your website so instead, you can [calculate an entire accessible color palette with Colorable](https://jxnblk.com/colorable/).
418418

419419
Both the aXe and WAVE tools mentioned below also include color contrast tests and will report on contrast errors.
420420

421421
If you want to extend your contrast testing abilities you can use these tools:
422422

423-
- [WebAIM - Color Contrast Checker](http://webaim.org/resources/contrastchecker/)
423+
- [WebAIM - Color Contrast Checker](https://webaim.org/resources/contrastchecker/)
424424
- [The Paciello Group - Color Contrast Analyzer](https://www.paciellogroup.com/resources/contrastanalyser/)
425425

426426
## Development and Testing Tools {#development-and-testing-tools}
@@ -471,7 +471,7 @@ You can also use the [react-axe](https://github.com/dylanb/react-axe) module to
471471

472472
#### WebAIM WAVE {#webaim-wave}
473473

474-
The [Web Accessibility Evaluation Tool](http://wave.webaim.org/extension/) is another accessibility browser extension.
474+
The [Web Accessibility Evaluation Tool](https://wave.webaim.org/extension/) is another accessibility browser extension.
475475

476476
#### Accessibility inspectors and the Accessibility Tree {#accessibility-inspectors-and-the-accessibility-tree}
477477

@@ -498,7 +498,7 @@ Please note that browser / screen reader combinations matter. It is recommended
498498

499499
Refer to the following guides on how to best use NVDA:
500500

501-
- [WebAIM - Using NVDA to Evaluate Web Accessibility](http://webaim.org/articles/nvda/)
501+
- [WebAIM - Using NVDA to Evaluate Web Accessibility](https://webaim.org/articles/nvda/)
502502
- [Deque - NVDA Keyboard Shortcuts](https://dequeuniversity.com/screenreaders/nvda-keyboard-shortcuts)
503503

504504
#### VoiceOver in Safari {#voiceover-in-safari}
@@ -507,26 +507,26 @@ VoiceOver is an integrated screen reader on Apple devices.
507507

508508
Refer to the following guides on how activate and use VoiceOver:
509509

510-
- [WebAIM - Using VoiceOver to Evaluate Web Accessibility](http://webaim.org/articles/voiceover/)
510+
- [WebAIM - Using VoiceOver to Evaluate Web Accessibility](https://webaim.org/articles/voiceover/)
511511
- [Deque - VoiceOver for OS X Keyboard Shortcuts](https://dequeuniversity.com/screenreaders/voiceover-keyboard-shortcuts)
512512
- [Deque - VoiceOver for iOS Shortcuts](https://dequeuniversity.com/screenreaders/voiceover-ios-shortcuts)
513513

514514
#### JAWS in Internet Explorer {#jaws-in-internet-explorer}
515515

516-
[Job Access With Speech](http://www.freedomscientific.com/Products/Blindness/JAWS) or JAWS, is a prolifically used screen reader on Windows.
516+
[Job Access With Speech](https://www.freedomscientific.com/Products/software/JAWS/) or JAWS, is a prolifically used screen reader on Windows.
517517

518518
Refer to the following guides on how to best use JAWS:
519519

520-
- [WebAIM - Using JAWS to Evaluate Web Accessibility](http://webaim.org/articles/jaws/)
520+
- [WebAIM - Using JAWS to Evaluate Web Accessibility](https://webaim.org/articles/jaws/)
521521
- [Deque - JAWS Keyboard Shortcuts](https://dequeuniversity.com/screenreaders/jaws-keyboard-shortcuts)
522522

523523
### Other Screen Readers {#other-screen-readers}
524524

525525
#### ChromeVox in Google Chrome {#chromevox-in-google-chrome}
526526

527-
[ChromeVox](http://www.chromevox.com/) is an integrated screen reader on Chromebooks and is available [as an extension](https://chrome.google.com/webstore/detail/chromevox/kgejglhpjiefppelpmljglcjbhoiplfn?hl=en) for Google Chrome.
527+
[ChromeVox](https://www.chromevox.com/) is an integrated screen reader on Chromebooks and is available [as an extension](https://chrome.google.com/webstore/detail/chromevox/kgejglhpjiefppelpmljglcjbhoiplfn?hl=en) for Google Chrome.
528528

529529
Refer to the following guides on how best to use ChromeVox:
530530

531531
- [Google Chromebook Help - Use the Built-in Screen Reader](https://support.google.com/chromebook/answer/7031755?hl=en)
532-
- [ChromeVox Classic Keyboard Shortcuts Reference](http://www.chromevox.com/keyboard_shortcuts.html)
532+
- [ChromeVox Classic Keyboard Shortcuts Reference](https://www.chromevox.com/keyboard_shortcuts.html)

content/docs/add-react-to-a-website.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ return (
149149

150150
These two code snippets are equivalent. While **JSX is [completely optional](/docs/react-without-jsx.html)**, many people find it helpful for writing UI code -- both with React and with other libraries.
151151

152-
You can play with JSX using [this online converter](http://babeljs.io/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=Q&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2%2Cstage-3&prettier=true&targets=Node-6.12&version=6.26.0&envVersion=).
152+
You can play with JSX using [this online converter](https://babeljs.io/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=Q&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2%2Cstage-3&prettier=true&targets=Node-6.12&version=6.26.0&envVersion=).
153153

154154
### Quickly Try JSX {#quickly-try-jsx}
155155

@@ -197,6 +197,6 @@ Don't wait for it to finish -- this command starts an automated watcher for JSX.
197197

198198
If you now create a file called `src/like_button.js` with this **[JSX starter code](https://cdn.rawgit.com/gaearon/c8e112dc74ac44aac4f673f2c39d19d1/raw/09b951c86c1bf1116af741fa4664511f2f179f0a/like_button.js)**, the watcher will create a preprocessed `like_button.js` with the plain JavaScript code suitable for the browser. When you edit the source file with JSX, the transform will re-run automatically.
199199

200-
As a bonus, this also lets you use modern JavaScript syntax features like classes without worrying about breaking older browsers. The tool we just used is called Babel, and you can learn more about it from [its documentation](http://babeljs.io/docs/en/babel-cli/).
200+
As a bonus, this also lets you use modern JavaScript syntax features like classes without worrying about breaking older browsers. The tool we just used is called Babel, and you can learn more about it from [its documentation](https://babeljs.io/docs/en/babel-cli/).
201201

202202
If you notice that you're getting comfortable with build tools and want them to do more for you, [the next section](/docs/create-a-new-react-app.html) describes some of the most popular and approachable toolchains. If not -- those script tags will do just fine!

content/docs/addons-perf.md

+2-2
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"](http://benchling.engineering/performance-engineering-with-react/)
31-
- ["A Deep Dive into React Perf Debugging"](http://benchling.engineering/deep-dive-react-perf-debugging/)
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/)
3232

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

0 commit comments

Comments
 (0)