Skip to content

Commit 50bff30

Browse files
resolved conflicts
1 parent 42760a7 commit 50bff30

21 files changed

+18
-202
lines changed

src/components/Layout/Feedback.tsx

-7
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,10 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
6363
return (
6464
<div
6565
className={cn(
66-
<<<<<<< HEAD
67-
'max-w-xs w-80 lg:w-auto py-3 shadow-lg rounded-lg m-4 bg-wash dark:bg-gray-95 px-4 flex',
68-
{exit: isSubmitted}
69-
)}>
70-
<p className="w-full font-bold text-primary dark:text-primary-dark text-lg me-4">
71-
=======
7266
'max-w-custom-xs w-80 lg:w-auto py-3 shadow-lg rounded-lg m-4 bg-wash dark:bg-gray-95 px-4 flex',
7367
{exit: isSubmitted}
7468
)}>
7569
<p className="w-full text-lg font-bold text-primary dark:text-primary-dark me-4">
76-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
7770
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
7871
</p>
7972
{!isSubmitted && (

src/components/MDX/ErrorDecoder.tsx

-13
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,17 @@ function replaceArgs(
1818
/**
1919
* Sindre Sorhus <https://sindresorhus.com>
2020
* Released under MIT license
21-
<<<<<<< HEAD
22-
* https://github.com/sindresorhus/linkify-urls/blob/edd75a64a9c36d7025f102f666ddbb6cf0afa7cd/index.js#L4C25-L4C137
23-
*
24-
* The regex is used to extract URL from the string for linkify.
25-
*/
26-
const urlRegex =
27-
/((?<!\+)https?:\/\/(?:www\.)?(?:[-\w.]+?[.@][a-zA-Z\d]{2,}|localhost)(?:[-\w.:%+~#*$!?&/=@]*?(?:,(?!\s))*?)*)/g;
28-
=======
2921
* https://github.com/sindresorhus/linkify-urls/blob/b2397096df152e2f799011f7a48e5f73b4bf1c7e/index.js#L5C1-L7C1
3022
*
3123
* The regex is used to extract URL from the string for linkify.
3224
*/
3325
const urlRegex = () =>
3426
/((?:https?(?::\/\/))(?:www\.)?(?:[a-zA-Z\d-_.]+(?:(?:\.|@)[a-zA-Z\d]{2,})|localhost)(?:(?:[-a-zA-Z\d:%_+.~#!?&//=@]*)(?:[,](?![\s]))*)*)/g;
35-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
3627

3728
// When the message contains a URL (like https://fb.me/react-refs-must-have-owner),
3829
// make it a clickable link.
3930
function urlify(str: string): React.ReactNode[] {
40-
<<<<<<< HEAD
41-
const segments = str.split(urlRegex);
42-
=======
4331
const segments = str.split(urlRegex());
44-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
4532

4633
return segments.map((message, i) => {
4734
if (i % 2 === 1) {

src/components/Seo.tsx

-14
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,8 @@ export interface SeoProps {
1919
searchOrder?: number;
2020
}
2121

22-
<<<<<<< HEAD
23-
const deployedTranslations = [
24-
'en',
25-
'zh-hans',
26-
'es',
27-
'fr',
28-
'ja',
29-
'tr',
30-
// We'll add more languages when they have enough content.
31-
// Please DO NOT edit this list without a discussion in the reactjs/react.dev repo.
32-
// It must be the same between all translations.
33-
];
34-
=======
3522
// If you are a maintainer of a language fork,
3623
// deployedTranslations has been moved to src/utils/finishedTranslations.ts.
37-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
3824

3925
function getDomain(languageCode: string): string {
4026
const subdomain = languageCode === 'en' ? '' : languageCode + '.';

src/content/community/conferences.md

+5-26
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ Do you know of a local React.js conference? Add it here! (Please keep the list c
1010

1111
## Upcoming Conferences {/*upcoming-conferences*/}
1212

13-
<<<<<<< HEAD
14-
### React Paris 2024 {/*react-paris-2024*/}
15-
March 22, 2024. In-person in Paris, France + Remote (hybrid)
16-
17-
[Website](https://react.paris/) - [Twitter](https://twitter.com/BeJS_) - [LinkedIn](https://www.linkedin.com/events/7150816372074192900/comments/)
18-
=======
1913
### React Universe Conf 2024 {/*react-universe-conf-2024*/}
2014
September 5-6, 2024. Wrocław, Poland.
2115

@@ -60,7 +54,6 @@ November 14 & 15, 2024. In-person in London, UK
6054
November 19 & 22, 2024. In-person in New York, USA + online (hybrid event)
6155

6256
[Website](https://reactsummit.us/) - [Twitter](https://twitter.com/reactsummit) - [Videos](https://portal.gitnation.org/)
63-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
6457

6558
### React Africa 2024 {/*react-africa-2024*/}
6659
November 29, 2024. In-person in Casablanca, Morocco (hybrid event)
@@ -109,19 +102,6 @@ June 12 - June 14, 2024. Atlanta, GA, USA
109102

110103
[Website](https://renderatl.com) - [Discord](https://www.renderatl.com/discord) - [Twitter](https://twitter.com/renderATL) - [Instagram](https://www.instagram.com/renderatl/) - [Facebook](https://www.facebook.com/renderatl/) - [LinkedIn](https://www.linkedin.com/company/renderatl) - [Podcast](https://www.renderatl.com/culture-and-code#/)
111104

112-
<<<<<<< HEAD
113-
### React Nexus 2024 {/*react-nexus-2024*/}
114-
July 04 & 05, 2024. Bangalore, India (In-person event)
115-
116-
[Website](https://reactnexus.com/) - [Twitter](https://twitter.com/ReactNexus) - [Linkedin](https://www.linkedin.com/company/react-nexus) - [YouTube](https://www.youtube.com/reactify_in)
117-
118-
### React India 2024 {/*react-india-2024*/}
119-
October 17 - 19, 2024. In-person in Goa, India (hybrid event) + Oct 15 2024 - remote day
120-
121-
[Website](https://www.reactindia.io) - [Twitter](https://twitter.com/react_india) - [Facebook](https://www.facebook.com/ReactJSIndia) - [Youtube](https://www.youtube.com/channel/UCaFbHCBkPvVv1bWs_jwYt3w)
122-
123-
## Past Conferences {/*past-conferences*/}
124-
=======
125105
### Frontend Nation 2024 {/*frontend-nation-2024*/}
126106
June 4 - 7, 2024. Online
127107

@@ -138,7 +118,7 @@ May 15 - 16, 2024. In-person in Henderson, NV, USA + remote
138118
[Website](https://conf.react.dev) - [Twitter](https://twitter.com/reactjs)
139119

140120
### React Native Connection 2024 {/*react-native-connection-2024*/}
141-
April 23, 2024. In-person in Paris, France
121+
April 23, 2024. In-person in Paris, France
142122

143123
[Website](https://reactnativeconnection.io/) - [Twitter](https://twitter.com/ReactNativeConn)
144124

@@ -180,7 +160,7 @@ October 20 & 23, 2023. In-person in London, UK + remote first interactivity (hyb
180160
### React Brussels 2023 {/*react-brussels-2023*/}
181161
October 13th 2023. In-person in Brussels, Belgium + Remote (hybrid)
182162

183-
[Website](https://www.react.brussels/) - [Twitter](https://twitter.com/BrusselsReact) - [Videos](https://www.youtube.com/playlist?list=PL53Z0yyYnpWh85KeMomUoVz8_brrmh_aC)
163+
[Website](https://www.react.brussels/) - [Twitter](https://twitter.com/BrusselsReact) - [Videos](https://www.youtube.com/playlist?list=PL53Z0yyYnpWh85KeMomUoVz8_brrmh_aC)
184164

185165
### React India 2023 {/*react-india-2023*/}
186166
October 5 - 7, 2023. In-person in Goa, India (hybrid event) + Oct 3 2023 - remote day
@@ -203,15 +183,14 @@ September 28 - 30, 2023. Alicante, Spain
203183
[Website](https://reactalicante.es/) - [Twitter](https://twitter.com/reactalicante)
204184

205185
### RedwoodJS Conference 2023 {/*redwoodjs-conference-2023*/}
206-
September 26 - 29, 2023. Grants Pass, Oregon + remote (hybrid event)
186+
September 26 - 29, 2023. Grants Pass, Oregon + remote (hybrid event)
207187

208188
[Website](https://www.redwoodjsconf.com/) - [Twitter](https://twitter.com/redwoodjs)
209189

210190
### React Native EU 2023 {/*react-native-eu-2023*/}
211191
September 7 & 8, 2023. Wrocław, Poland
212192

213193
[Website](https://react-native.eu) - [Twitter](https://twitter.com/react_native_eu) - [Facebook](https://www.facebook.com/reactnativeeu)
214-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
215194

216195
### React Day Berlin 2023 {/*react-day-berlin-2023*/}
217196
December 8 & 12, 2023. In-person in Berlin, Germany + remote first interactivity (hybrid event)
@@ -236,7 +215,7 @@ October 20 & 23, 2023. In-person in London, UK + remote first interactivity (hyb
236215
### React Brussels 2023 {/*react-brussels-2023*/}
237216
October 13th 2023. In-person in Brussels, Belgium + Remote (hybrid)
238217

239-
[Website](https://www.react.brussels/) - [Twitter](https://twitter.com/BrusselsReact) - [Videos](https://www.youtube.com/playlist?list=PL53Z0yyYnpWh85KeMomUoVz8_brrmh_aC)
218+
[Website](https://www.react.brussels/) - [Twitter](https://twitter.com/BrusselsReact) - [Videos](https://www.youtube.com/playlist?list=PL53Z0yyYnpWh85KeMomUoVz8_brrmh_aC)
240219

241220
### React India 2023 {/*react-india-2023*/}
242221
October 5 - 7, 2023. In-person in Goa, India (hybrid event) + Oct 3 2023 - remote day
@@ -259,7 +238,7 @@ September 28 - 30, 2023. Alicante, Spain
259238
[Website](https://reactalicante.es/) - [Twitter](https://twitter.com/reactalicante)
260239

261240
### RedwoodJS Conference 2023 {/*redwoodjs-conference-2023*/}
262-
September 26 - 29, 2023. Grants Pass, Oregon + remote (hybrid event)
241+
September 26 - 29, 2023. Grants Pass, Oregon + remote (hybrid event)
263242

264243
[Website](https://www.redwoodjsconf.com/) - [Twitter](https://twitter.com/redwoodjs)
265244

src/content/community/meetups.md

-4
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet
174174
* [New York, NY - React Native](https://www.meetup.com/React-Native-NYC/)
175175
* [New York, NY - useReactNYC](https://www.meetup.com/useReactNYC/)
176176
* [New York, NY - React.NYC](https://guild.host/react-nyc)
177-
<<<<<<< HEAD
178-
* [Omaha, NE - ReactJS/React Native](https://www.meetup.com/omaha-react-meetup-group/)
179-
=======
180-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
181177
* [Palo Alto, CA - React Native](https://www.meetup.com/React-Native-Silicon-Valley/)
182178
* [Phoenix, AZ - ReactJS](https://www.meetup.com/ReactJS-Phoenix/)
183179
* [Provo, UT - ReactJS](https://www.meetup.com/ReactJS-Utah/)

src/content/learn/conditional-rendering.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ export default function PackingList() {
5252
5353
</Sandpack>
5454
55-
<<<<<<< HEAD
56-
注意有些 `Item` component 的 `isPacked` prop 的值是 `true` 而非 `false`。而你想要在 `isPacked={true}` 的情況下,為已打包的項目加上一個勾號 (✔)。
57-
=======
58-
Notice that some of the `Item` components have their `isPacked` prop set to `true` instead of `false`. You want to add a checkmark (✅) to packed items if `isPacked={true}`.
59-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
55+
請注意,有一些 `Item` componet 的 `isPacked` prop 設為 `true` 而不是 `false`。如果 `isPacked={true}`,你想要在已打包的項目上加一個核取記號(✅)。
6056
6157
你可以將此情境用以下 [`if`/`else` 陳述式](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else)來表示:
6258
@@ -206,11 +202,7 @@ return (
206202
);
207203
```
208204
209-
<<<<<<< HEAD
210-
你可以把這段程式碼解讀為:「如果 `isPacked` 的值為 `true`,則 (`?`) render `name + ''`;否則 (`:`),render `name` 」。
211-
=======
212-
You can read it as *"if `isPacked` is true, then (`?`) render `name + ''`, otherwise (`:`) render `name`"*.
213-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
205+
你可以把這段程式碼解讀為:「如果 `isPacked` 的值為 `true`,則 (`?`) render `name + ''`;否則 (`:`)render `name` 」。
214206
215207
<DeepDive>
216208

src/content/learn/editor-setup.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ Code linter 可以在你撰寫程式碼的時候發現問題,幫助你儘早
4040

4141
### 格式化 {/*formatting*/}
4242

43-
<<<<<<< HEAD
44-
當你與另一個貢獻者分享你的程式時,你最不想做的事情就是陷入關於 [tabs 與 spaces](https://www.google.com/search?q=tabs+vs+spaces) 的討論中!幸運的是,[Prettier](https://prettier.io/) 將通過重新格式化來清理你的程式碼,使其符合預設的、可配置的規則。執行 Prettier,你所有的 tab 將被轉換為 space--你的縮排、引號等也將全部被改變,以符合配置。在理想的設定中,Prettier 將在你儲存文件時執行,迅速為你進行這些編輯。
45-
=======
46-
The last thing you want to do when sharing your code with another contributor is get into a discussion about [tabs vs spaces](https://www.google.com/search?q=tabs+vs+spaces)! Fortunately, [Prettier](https://prettier.io/) will clean up your code by reformatting it to conform to preset, configurable rules. Run Prettier, and all your tabs will be converted to spaces—and your indentation, quotes, etc will also all be changed to conform to the configuration. In the ideal setup, Prettier will run when you save your file, quickly making these edits for you.
47-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
43+
當你與另一個貢獻者分享你的程式時,你最不想做的事情就是陷入關於 [tabs 與 spaces](https://www.google.com/search?q=tabs+vs+spaces) 的討論中!幸運的是,[Prettier](https://prettier.io/) 將通過重新格式化來清理你的程式碼,使其符合預設的、可配置的規則。執行 Prettier,你所有的 tab 將被轉換為 space 以及你的縮排、引號等也將全部被改變,以符合設定。在理想的設定中,Prettier 將在你儲存文件時執行,快速的為你進行這些編輯。
4844

4945
你可以透過以下幾個步驟安裝[在 VSCode 內安裝 Prettier 擴充套件](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
5046

src/content/learn/installation.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ export default function App() {
3737

3838
你可以直接編輯它,或按右上角的「Fork」按鈕在新的頁面中打開它。
3939

40-
<<<<<<< HEAD
41-
React 文件中的大多數頁面都包含像這樣的 sandbox 範例。在 React 文件之外,有許多支援 React 的線上 sandbox,例如 [CodeSandbox]((https://codesandbox.io/s/new))[StackBlitz](https://stackblitz.com/fork/react)[CodePen](https://codepen.io/pen?&editors=0010&layout=left&prefill_data_id=3f4569d1-1b11-4bce-bd46-89090eed5ddb)
42-
=======
43-
Most pages in the React documentation contain sandboxes like this. Outside of the React documentation, there are many online sandboxes that support React: for example, [CodeSandbox](https://codesandbox.io/s/new), [StackBlitz](https://stackblitz.com/fork/react), or [CodePen.](https://codepen.io/pen?template=QWYVwWN)
44-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
40+
React 文件中的大多數頁面都包含像這樣的 sandbox 範例。在 React 文件之外,有許多支援 React 的線上 sandbox,例如 [CodeSandbox](https://codesandbox.io/s/new)[StackBlitz](https://stackblitz.com/fork/react)[CodePen](https://codepen.io/pen?template=QWYVwWN)
4541

4642
### 在本機端嘗試 React {/*try-react-locally*/}
4743

0 commit comments

Comments
 (0)