Skip to content

Commit 5c2c44a

Browse files
authored
Merge pull request #242 from reactjs/sync-f2158e36
Sync with reactjs.org @ f2158e3
2 parents 5b3e8a5 + d8c3f4a commit 5c2c44a

File tree

7 files changed

+25
-8
lines changed

7 files changed

+25
-8
lines changed

content/community/conferences.md

+10
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Bạn có biết về hội nghị React.js ở địa phương hay khu vực c
1212

1313
## Upcoming Conferences {#upcoming-conferences}
1414

15+
### AgentConf 2022 {#agent-conf-2022}
16+
January 27th - 30th, 2022. In-person in Dornbirn and Lech Austria
17+
18+
[Website](https://agent.sh/) - [Twitter](https://twitter.com/AgentConf) - [Instagram](https://www.instagram.com/teamagent/)
19+
1520
### React Brussels 2021 {#react-brussels-2021}
1621
October 15, 2021 - remote event
1722

@@ -43,6 +48,11 @@ November 12-14, 2021 - remote event
4348

4449
[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)
4550

51+
### render(ATL) 2022 {#render-atlanta-2022}
52+
June 2-4, 2022. Atlanta, GA, USA
53+
54+
[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)
55+
4656
## Past Conferences {#past-conferences}
4757

4858
### render(ATL) 2021 {#render-atlanta-2021}

content/community/meetups.md

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ Bạn đã có React.js meetup tại quốc gia của bạn chưa? Thêm nó và
112112
## Ý {#italy}
113113
* [Milan](https://www.meetup.com/React-JS-Milano/)
114114

115+
## Kenya {#kenya}
116+
* [Nairobi - Reactdevske](https://kommunity.com/reactjs-developer-community-kenya-reactdevske)
117+
115118
## Malaysia {#malaysia}
116119
* [Kuala Lumpur](https://www.kl-react.com/)
117120
* [Penang](https://www.facebook.com/groups/reactpenang/)

content/community/support.md

+7
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,18 @@ Có rất nhiều diễn đàn online là nơi tuyệt vời để thảo luận
2424

2525
Mỗi cộng đồng bao gồm hàng nghìn người dùng React.
2626

27+
<<<<<<< HEAD
2728
* [Cộng đồng React của DEV](https://dev.to/t/react)
2829
* [Cộng đồng React của Hashnode](https://hashnode.com/n/reactjs)
2930
* [Trò chuyện online với Reactiflux](https://discord.gg/reactiflux)
3031
* [Cộng đồng React của Reddit](https://www.reddit.com/r/reactjs/)
3132
* [Cộng đồng React của Spectrum](https://spectrum.chat/react)
33+
=======
34+
* [DEV's React community](https://dev.to/t/react)
35+
* [Hashnode's React community](https://hashnode.com/n/reactjs)
36+
* [Reactiflux online chat](https://discord.gg/reactiflux)
37+
* [Reddit's React community](https://www.reddit.com/r/reactjs/)
38+
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
3239
3340
## Tin tức {#news}
3441

content/docs/concurrent-mode-suspense.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function ProfileTimeline() {
100100

101101
This demo is a teaser. Don't worry if it doesn't quite make sense yet. We'll talk more about how it works below. Keep in mind that Suspense is more of a *mechanism*, and particular APIs like `fetchProfileData()` or `resource.posts.read()` in the above example are not very important. If you're curious, you can find their definitions right in the [demo sandbox](https://codesandbox.io/s/frosty-hermann-bztrp).
102102

103-
Suspense is not a data fetching library. It's a **mechanism for data fetching libraries** to communicate to React that *the data a component is reading is not ready yet*. React can then wait for it to be ready and update the UI. At Facebook, we use Relay and its [new Suspense integration](docs/getting-started/step-by-step-guide/). We expect that other libraries like Apollo can provide similar integrations.
103+
Suspense is not a data fetching library. It's a **mechanism for data fetching libraries** to communicate to React that *the data a component is reading is not ready yet*. React can then wait for it to be ready and update the UI. At Facebook, we use Relay and its [new Suspense integration](https://relay.dev/docs/getting-started/step-by-step-guide/). We expect that other libraries like Apollo can provide similar integrations.
104104

105105
In the long term, we intend Suspense to become the primary way to read asynchronous data from components -- no matter where that data is coming from.
106106

content/docs/hooks-faq.md

-4
Original file line numberDiff line numberDiff line change
@@ -912,13 +912,9 @@ Lưu ý bạn có thể chọn giữa truyền *state* của ứng dụng xuốn
912912

913913
>Lưu ý
914914
>
915-
<<<<<<< HEAD
916915
>Chúng tôi đề xuất [truyền `dispatch` xuống các context](#how-to-avoid-passing-callbacks-down) thay vì các callback độc lập qua prop. Cách tiếp cận bên dưới chỉ đề cập ở đây để đầy đủ và như là một cách hatch.
917916
>
918917
>Cũng lưu ý rằng pattern này có thể gây ra vấn đề trong [chế độ concurrent ](/blog/2018/03/27/update-on-async-rendering.html). Chúng tôi có kế hoạch cung cấp một cách làm khác hữu hiệu trong tương lai, nhưng giải pháp an toàn nhất hiện nay là luôn luôn vô hiệu hóa callback nếu một vài giá trị phụ thuộc vào thay đổi.
919-
=======
920-
>We recommend to [pass `dispatch` down in context](#how-to-avoid-passing-callbacks-down) rather than individual callbacks in props. The approach below is only mentioned here for completeness and as an escape hatch.
921-
>>>>>>> 4133943e718a77f11627888db2f59f6cb7a73403
922918
923919
Trong vài trường hợp các biệt, bạn cần nhớ 1 callback với [`useCallback`](/docs/hooks-reference.html#usecallback) nhưng việc nhớ này không làm việc tốt bởi vì hàm bên trong bị re-create quá nhiều lần. Nếu hàm bạn nhớ là một hàm xử lý sự kiện và không được sử dụng trong quá trình render, bạn có thể sử dụng [ref như một biến instance](#is-there-something-like-instance-variables), và lưu giá trị lần commit sau cùng một cách thủ công:
924920

content/tutorial/tutorial.md

+2
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,7 @@ Hãy `map` mảng `history` trong phương thức `render` của Game component:
10461046
**[Xem code chi tiết tại bước này](https://codepen.io/gaearon/pen/EmmGEa?editors=0010)**
10471047

10481048
Với mỗi lịch sử bước đi trong game tic-tac-toe, ta tạo ra một danh sách các `<li>` chứa một `<button>`. Button sẽ có một hàm xử lý `onClick`, hàm này sẽ gọi phương thức `this.jumpTo()`. Hiện tại ta chưa có hàm `jumpTo()`. Đến bước này, bạn sẽ thấy một danh sách các bước đi được hiển thị trên màn hình và cảnh báo trong console của công cụ cho nhà phát triển với thông điệp như sau:
1049+
10491050
Khi chúng ta loop qua mảng `history`, `step` biến này ánh xạ tới value của element `history`. Và `move` ánh xạ tới `history` element index. Chúng ta chỉ quan tâm tới `move` ở đây, vì thế `step` sẽ không được gán.
10501051

10511052
> Warning:
@@ -1146,6 +1147,7 @@ Tiếp theo, chúng ta sẽ định nghĩa hàm `jumpTo` trong Game component đ
11461147
// this method has not changed
11471148
}
11481149
```
1150+
Notice in `jumpTo` method, we haven't updated history property of the state. That is because state updates are merged or in more simple words react will update only the properties mentioned in `setState` method leaving the remaining state as that is. For more info **[see the documentation](https://reactjs.org/docs/state-and-lifecycle.html#state-updates-are-merged)**
11491151

11501152
Bây giờ ta sẽ cần thay đổi hàm `handleClick` của Game component một chút.
11511153

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@
6262
"yarn": "^1.3.2"
6363
},
6464
"homepage": "https://reactjs.org/",
65-
"keywords": [
66-
"gatsby"
67-
],
65+
"keywords": [],
6866
"license": "CC",
6967
"main": "n/a",
7068
"repository": {
@@ -73,6 +71,7 @@
7371
},
7472
"scripts": {
7573
"build": "gatsby clean && gatsby build",
74+
"build-ci": "gatsby clean && gatsby build",
7675
"check-all": "npm-run-all prettier generate-ids --parallel lint flow",
7776
"ci-check": "npm-run-all prettier:diff --parallel lint flow",
7877
"dev": "gatsby develop -H 0.0.0.0",

0 commit comments

Comments
 (0)