Skip to content

Commit 035698b

Browse files
authored
Merge pull request #117 from reactjs/sync-f9e2c139
Sync with react.dev @ f9e2c13
2 parents 931bd89 + 6a3a553 commit 035698b

File tree

7 files changed

+62
-17
lines changed

7 files changed

+62
-17
lines changed

next.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ const nextConfig = {
3636
// Don't bundle the shim unnecessarily.
3737
config.resolve.alias['use-sync-external-store/shim'] = 'react';
3838

39+
// ESLint depends on the CommonJS version of esquery,
40+
// but Webpack loads the ESM version by default. This
41+
// alias ensures the correct version is used.
42+
//
43+
// More info:
44+
// https://github.com/reactjs/react.dev/pull/8115
45+
config.resolve.alias['esquery'] = 'esquery/dist/esquery.min.js';
46+
3947
const {IgnorePlugin, NormalModuleReplacementPlugin} = require('webpack');
4048
config.plugins.push(
4149
new NormalModuleReplacementPlugin(

src/components/MDX/Sandpack/runESLint.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ const getCodeMirrorPosition = (
2121

2222
const linter = new Linter();
2323

24-
// HACK! Eslint requires 'esquery' using `require`, but there's no commonjs interop.
25-
// because of this it tries to run `esquery.parse()`, while there's only `esquery.default.parse()`.
26-
// This hack places the functions in the right place.
27-
const esquery = require('esquery');
28-
esquery.parse = esquery.default?.parse;
29-
esquery.matches = esquery.default?.matches;
30-
3124
const reactRules = require('eslint-plugin-react-hooks').rules;
3225
linter.defineRules({
3326
'react-hooks/rules-of-hooks': reactRules['rules-of-hooks'],

src/content/community/conferences.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,37 @@ April 14-17, 2026. In-person in London
112112
## Past Conferences {/*past-conferences*/}
113113

114114

115+
### React Norway 2025 {/*react-norway-2025*/}
116+
June 13, 2025. In-person in Oslo, Norway + remote (virtual event)
117+
118+
[Website](https://reactnorway.com/) - [Twitter](https://x.com/ReactNorway)
119+
120+
### CityJS Athens 2025 {/*cityjs-athens*/}
121+
May 27 - 31, 2025. In-person in Athens, Greece
122+
123+
[Website](https://athens.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
124+
125+
### App.js Conf 2025 {/*appjs-conf-2025*/}
126+
May 28 - 30, 2025. In-person in Kraków, Poland + remote
127+
128+
[Website](https://appjs.co) - [Twitter](https://twitter.com/appjsconf)
129+
130+
### CityJS London 2025 {/*cityjs-london*/}
131+
April 23 - 25, 2025. In-person in London, UK
132+
133+
[Website](https://london.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
134+
135+
### React Paris 2025 {/*react-paris-2025*/}
136+
March 20 - 21, 2025. In-person in Paris, France (hybrid event)
137+
138+
[Website](https://react.paris/) - [Twitter](https://x.com/BeJS_) - [YouTube](https://www.youtube.com/playlist?list=PL53Z0yyYnpWitP8Zv01TSEQmKLvuRh_Dj)
139+
140+
### React Native Connection 2025 {/*react-native-connection-2025*/}
141+
April 3 (Reanimated Training) + April 4 (Conference), 2025. Paris, France.
142+
143+
[Website](https://reactnativeconnection.io/) - [X](https://x.com/reactnativeconn) - [Bluesky](https://bsky.app/profile/reactnativeconnect.bsky.social)
144+
145+
115146
### React Norway 2025 {/*react-norway-2025*/}
116147
June 13, 2025. In-person in Oslo, Norway + remote (virtual event)
117148

src/content/learn/thinking-in-react.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ Anza kwa kuchora visanduku kuzunguka kila kijenzi na kijenzi kidogo kwenye kiigi
3737

3838
Kulingana na msingi wako, unaweza kufikiria kugawanya muundo katika vijenzi kwa njia tofauti:
3939

40+
<<<<<<< HEAD
4041
* **Programming**--tumia mbinu zile zile za kuamua ikiwa unapaswa kuunda kitendaji kipya au object. Mbinu moja kama hiyo ni [kanuni ya uwajibikaji mmoja (single responsibility principle)](https://en.wikipedia.org/wiki/Single_responsibility_principle), yaani, kijenzi kinapaswa kufanya jambo moja tu. Ikiwa kitaishia kukua, inapaswa kigawanywe kiwe vijenzi vidogo.
4142
* **CSS**--fikiria ni nini ungetengeneza viteule vya darasa. (Hatahivyo, vijenzi ni vidogo kwa kiasi fulani.)
4243
* **Design**--fikiria jinsi unavyoweza kupanga safu za muundo.
44+
=======
45+
* **Programming**--use the same techniques for deciding if you should create a new function or object. One such technique is the [separation of concerns](https://en.wikipedia.org/wiki/Separation_of_concerns), that is, a component should ideally only be concerned with one thing. If it ends up growing, it should be decomposed into smaller subcomponents.
46+
* **CSS**--consider what you would make class selectors for. (However, components are a bit less granular.)
47+
* **Design**--consider how you would organize the design's layers.
48+
>>>>>>> f9e2c1396769bb5da87db60f9ff03683d18711e2
4349
4450
Ikiwa JSON yako imeundwa vizuri, mara nyingi utapata kwamba inaelekeza kwa muundo wa vijenzi vya UI yako. Hiyo ni kwa sababu UI na miundo ya data mara nyingi huwa na usanifu sawa wa habari--yaani, umbo sawa. Tenganisha UI yako katika vijenzi, ambapo kila kijenzi kinalingana na kipande kimoja cha muundo yako wa data.
4551

src/content/learn/tutorial-tic-tac-toe.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,9 @@ Katika CodeSandbox utaona sehemu tatu kuu:
283283

284284
![CodeSandbox na msimbo wa mwanzo](../images/tutorial/react-starter-code-codesandbox.png)
285285

286-
<<<<<<< HEAD
287286
1. Sehemu ya _Files_ na orodha ya mafaili kama `App.js`, `index.js`, `styles.css` na folda inayoitwa `public`
288287
1. _Kihariri cha msimbo_ ambapo utaona msimbo wa chanzo wa faili uliyouchagua
289288
1. Sehemu ya _kivinjari_ ambapo utaona jinsi msimbo ulioandika utakavyonyeshwa
290-
=======
291-
1. The _Files_ section with a list of files like `App.js`, `index.js`, `styles.css` in `src` folder and a folder called `public`
292-
1. The _code editor_ where you'll see the source code of your selected file
293-
1. The _browser_ section where you'll see how the code you've written will be displayed
294-
>>>>>>> 2c7798dcc51fbd07ebe41f49e5ded4839a029f72
295289

296290
Faili ya `App.js` inapaswa kuchaguliwa katika sehemu ya _Files_. Maudhui ya faili hiyo katika _mhariri wa msimbo_ yanapaswa kuwa:
297291

@@ -2253,11 +2247,7 @@ body {
22532247
22542248
</Sandpack>
22552249
2256-
<<<<<<< HEAD
22572250
Unapozunguka kupitia orodha ya `history` ndani ya function unayopitisha kwa `map`, hoja ya `squares` inapitia kila kipengele cha `history`, na hoja ya `move` inapitia kila kiashiria cha orodha: `0`, `1`, `2`, …. (Katika hali nyingi, ungehitaji vipengele halisi vya orodha, lakini ili kuonyesha orodha ya harakati utahitaji tu viashiria.)
2258-
=======
2259-
As you iterate through the `history` array inside the function you passed to `map`, the `squares` argument goes through each element of `history`, and the `move` argument goes through each array index: `0`, `1`, `2`, …. (In most cases, you'd need the actual array elements, but to render a list of moves you will only need indexes.)
2260-
>>>>>>> 2c7798dcc51fbd07ebe41f49e5ded4839a029f72
22612251
22622252
Kwa kila harakati katika historia ya mchezo wa tic-tac-toe, unaunda kipengele cha orodha `<li>` kinachojumuisha kitufe `<button>`. Kitufe kinakuwa na kihariri cha `onClick` kinachoitwa function inayoitwa `jumpTo` (ambayo huja kuwa umeitekeleza bado).
22632253

src/content/reference/react/Component.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,16 @@ We recommend defining components as functions instead of classes. [See how to mi
12711271
12721272
By default, if your application throws an error during rendering, React will remove its UI from the screen. To prevent this, you can wrap a part of your UI into an *Error Boundary*. An Error Boundary is a special component that lets you display some fallback UI instead of the part that crashed--for example, an error message.
12731273
1274+
<Note>
1275+
Error boundaries do not catch errors for:
1276+
1277+
- Event handlers [(learn more)](/learn/responding-to-events)
1278+
- [Server side rendering](/reference/react-dom/server)
1279+
- Errors thrown in the error boundary itself (rather than its children)
1280+
- Asynchronous code (e.g. `setTimeout` or `requestAnimationFrame` callbacks); an exception is the usage of the [`startTransition`](/reference/react/useTransition#starttransition) function returned by the [`useTransition`](/reference/react/useTransition) Hook. Errors thrown inside the transition function are caught by error boundaries [(learn more)](/reference/react/useTransition#displaying-an-error-to-users-with-error-boundary)
1281+
1282+
</Note>
1283+
12741284
To implement an Error Boundary component, you need to provide [`static getDerivedStateFromError`](#static-getderivedstatefromerror) which lets you update state in response to an error and display an error message to the user. You can also optionally implement [`componentDidCatch`](#componentdidcatch) to add some extra logic, for example, to log the error to an analytics service.
12751285
12761286
With [`captureOwnerStack`](/reference/react/captureOwnerStack) you can include the Owner Stack during development.

src/sidebarBlog.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
"date": "October 7, 2025",
3333
"path": "/blog/2025/10/07/introducing-the-react-foundation"
3434
},
35+
{
36+
"title": "React 19.2",
37+
"titleForHomepage": "React 19.2",
38+
"icon": "blog",
39+
"date": "October 1, 2025",
40+
"path": "/blog/2025/10/01/react-19-2"
41+
},
3542
{
3643
"title": "React Labs: View Transitions, Activity, and more",
3744
"titleForHomepage": "View Transitions and Activity",

0 commit comments

Comments
 (0)