Skip to content

Commit 3a9b525

Browse files
authored
Merge pull request #81 from reactjs/sync-9000e6e0
Sync with react.dev @ 9000e6e
2 parents 2258cca + 85a6cf3 commit 3a9b525

File tree

5 files changed

+34
-10
lines changed

5 files changed

+34
-10
lines changed

.github/workflows/discord_notify.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Discord Notify
2+
3+
on:
4+
pull_request_target:
5+
types: [ labeled ]
6+
7+
jobs:
8+
notify:
9+
if: ${{ github.event.label.name == 'React Core Team' }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Discord Webhook Action
13+
uses: tsickert/[email protected]
14+
with:
15+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
16+
embed-author-name: ${{ github.event.pull_request.user.login }}
17+
embed-author-url: ${{ github.event.pull_request.user.html_url }}
18+
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
19+
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
20+
embed-description: ${{ github.event.pull_request.body }}
21+
embed-url: ${{ github.event.pull_request.html_url }}

src/components/MDX/TerminalBlock.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function TerminalBlock({level = 'info', children}: TerminalBlockProps) {
7171
</div>
7272
</div>
7373
<div
74-
className="px-8 pt-4 pb-6 text-primary-dark dark:text-primary-dark font-mono text-code whitespace-pre overflow-x-scroll"
74+
className="px-8 pt-4 pb-6 text-primary-dark dark:text-primary-dark font-mono text-code whitespace-pre overflow-x-auto"
7575
translate="no"
7676
dir="ltr">
7777
<LevelText type={level} />

src/content/community/conferences.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ June 13 - 17, 2025. In-person in Amsterdam, Netherlands + remote (hybrid event)
2525

2626
[Website](https://reactsummit.com/) - [Twitter](https://x.com/reactsummit)
2727

28+
### React Universe Conf 2025 {/*react-universe-conf-2025*/}
29+
30+
[Website](https://reactday.berlin/) - [Twitter](https://x.com/reactdayberlin)
31+
2832
## Past Conferences {/*past-conferences*/}
2933

3034
### React Africa 2024 {/*react-africa-2024*/}
@@ -45,12 +49,13 @@ November 14 & 15, 2024. In-person in London, UK
4549
### React Advanced London 2024 {/*react-advanced-london-2024*/}
4650
October 25 & 28, 2024. In-person in London, UK + online (hybrid event)
4751

48-
[Website](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced)
4952

50-
### reactjsday 2024 {/*reactjsday-2024*/}
51-
October 25, 2024. In-person in Verona, Italy + online (hybrid event)
53+
[Website](https://reactsummit.us/) - [Twitter](https://twitter.com/reactsummit) - [Videos](https://portal.gitnation.org/)
54+
55+
### React Native London Conf 2024 {/*react-native-london-2024*/}
56+
November 14 & 15, 2024. In-person in London, UK
5257

53-
[Website](https://2024.reactjsday.it/) - [Twitter](https://x.com/reactjsday) - [Facebook](https://www.facebook.com/GrUSP/) - [YouTube](https://www.youtube.com/c/grusp)
58+
[Website](https://reactnativelondon.co.uk/) - [Twitter](https://x.com/RNLConf)
5459

5560
### React Brussels 2024 {/*react-brussels-2024*/}
5661
October 18, 2024. In-person in Brussels, Belgium (hybrid event)
@@ -74,10 +79,8 @@ September 19-21, 2024. Alicante, Spain.
7479

7580
### React Universe Conf 2024 {/*react-universe-conf-2024*/}
7681
September 5-6, 2024. Wrocław, Poland.
77-
7882
[Website](https://www.reactuniverseconf.com/) - [Twitter](https://twitter.com/react_native_eu) - [LinkedIn](https://www.linkedin.com/events/reactuniverseconf7163919537074118657/)
7983

80-
8184
### React Rally 2024 🐙 {/*react-rally-2024*/}
8285
August 12-13, 2024. Park City, UT, USA
8386

src/content/learn/add-react-to-an-existing-project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Let's say you have an existing web app at `example.com` built with another serve
2121
Here's how we recommend to set it up:
2222

2323
1. **Build the React part of your app** using one of the [React-based frameworks](/learn/start-a-new-react-project).
24-
2. **Specify `/some-app` as the *base path*** in your framework's configuration (here's how: [Next.js](https://nextjs.org/docs/api-reference/next.config.js/basepath), [Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/)).
24+
2. **Specify `/some-app` as the *base path*** in your framework's configuration (here's how: [Next.js](https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath), [Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/)).
2525
3. **Configure your server or a proxy** so that all requests under `/some-app/` are handled by your React app.
2626

2727
This ensures the React part of your app can [benefit from the best practices](/learn/start-a-new-react-project#can-i-use-react-without-a-framework) baked into those frameworks.

src/content/reference/rsc/server-functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ export async function createNote() {
8282

8383
```
8484

85-
When the bundler builds the `EmptyNote` Client Component, it will create a reference to the `createNoteAction` function in the bundle. When the `button` is clicked, React will send a request to the server to execute the `createNoteAction` function using the reference provided:
85+
When the bundler builds the `EmptyNote` Client Component, it will create a reference to the `createNote` function in the bundle. When the `button` is clicked, React will send a request to the server to execute the `createNote` function using the reference provided:
8686

8787
```js [[1, 2, "createNote"], [1, 5, "createNote"], [1, 7, "createNote"]]
8888
"use client";
8989
import {createNote} from './actions';
9090

9191
function EmptyNote() {
9292
console.log(createNote);
93-
// {$$typeof: Symbol.for("react.server.reference"), $$id: 'createNoteAction'}
93+
// {$$typeof: Symbol.for("react.server.reference"), $$id: 'createNote'}
9494
<button onClick={() => createNote()} />
9595
}
9696
```

0 commit comments

Comments
 (0)