Skip to content

Commit 617b704

Browse files
merging all conflicts
2 parents bc7985e + 081d100 commit 617b704

File tree

11 files changed

+90
-59
lines changed

11 files changed

+90
-59
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"check-all": "npm-run-all prettier lint:fix tsc"
2323
},
2424
"dependencies": {
25-
"@codesandbox/sandpack-react": "2.6.0",
25+
"@codesandbox/sandpack-react": "2.13.1",
2626
"@docsearch/css": "3.0.0-alpha.41",
2727
"@docsearch/react": "3.0.0-alpha.41",
2828
"@headlessui/react": "^1.7.0",

src/components/MDX/Sandpack/SandpackRoot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function SandpackRoot(props: SandpackProps) {
8888
autorun,
8989
initMode: 'user-visible',
9090
initModeObserverOptions: {rootMargin: '1400px 0px'},
91-
bundlerURL: 'https://1e4ad8f7.sandpack-bundler-4bw.pages.dev',
91+
bundlerURL: 'https://786946de.sandpack-bundler-4bw.pages.dev',
9292
logLevel: SandpackLogLevel.None,
9393
}}>
9494
<CustomPreset providedFiles={Object.keys(files)} />

src/content/community/conferences.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@ July 17-19, 2024. In-person in Portland, OR, USA
7070

7171
[Site web](https://chainreactconf.com) - [Twitter](https://twitter.com/ChainReactConf)
7272

73+
### The Geek Conf 2024 {/*the-geek-conf-2024*/}
74+
July 25, 2024. In-person in Berlin, Germany + remote (hybrid event)
75+
76+
[Website](https://thegeekconf.com) - [Twitter](https://twitter.com/thegeekconf)
77+
78+
### React Universe Conf 2024 {/*react-universe-conf-2024*/}
79+
September 5-6, 2024. Wrocław, Poland.
80+
81+
[Website](https://www.reactuniverseconf.com/) - [Twitter](https://twitter.com/react_native_eu) - [LinkedIn](https://www.linkedin.com/events/reactuniverseconf7163919537074118657/)
82+
83+
### React Alicante 2024 {/*react-alicante-2024*/}
84+
September 19-21, 2024. Alicante, Spain.
85+
86+
[Website](https://reactalicante.es/) - [Twitter](https://twitter.com/ReactAlicante) - [YouTube](https://www.youtube.com/channel/UCaSdUaITU1Cz6PvC97A7e0w)
87+
88+
7389
### React India 2024 {/*react-india-2024*/}
7490
October 17 - 19, 2024. In-person in Goa, India (hybrid event) + Oct 15 2024 - remote day
7591

src/content/community/team.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ Les membres actuels de l'équipe React sont listés ci-dessous par ordre alphab
2222
Andrey a commencé sa carrière comme designer pour progressivement passer au développement web. Après avoir rejoint l'équipe React Data chez Meta, il a travaillé à ajouter un compilateur incrémental JavaScript dans Relay… pour finir par le retirer plus tard. Hors du boulot, Andrey aime jouer de la musique et faire divers types de sports.
2323
</TeamMember>
2424

25+
<<<<<<< HEAD
2526
<TeamMember name="Dan Abramov" permalink="dan-abramov" photo="/images/team/gaearon.jpg" github="gaearon" twitter="dan_abramov" title="Ingénieur chez Meta">
2627
Dans a commencé à programmer lorsqu'il a découvert par hasard qu'il y avait Visual Basic dans Microsoft Powerpoint. Il a découvert que sa véritable vocation consistait à transformer les tweets de [Sebastian](#sebastian-markbåge) en billets de blog interminables. Dan gagne parfois à Fortnite en se cachant dans un buisson jusqu'à la fin de la partie.
28+
=======
29+
<TeamMember name="Dan Abramov" permalink="dan-abramov" photo="/images/team/gaearon.jpg" github="gaearon" twitter="dan_abramov" title="Independent Engineer">
30+
Dan got into programming after he accidentally discovered Visual Basic inside Microsoft PowerPoint. He has found his true calling in turning [Sebastian](#sebastian-markbåge)'s tweets into long-form blog posts. Dan occasionally wins at Fortnite by hiding in a bush until the game ends.
31+
>>>>>>> 081d1008dd1eebffb9550a3ff623860a7d977acf
2732
</TeamMember>
2833
2934
<TeamMember name="Eli White" permalink="eli-white" photo="/images/team/eli-white.jpg" github="TheSavior" twitter="Eli_White" threads="elicwhite" title="Manager d’ingénieurs chez Meta">

src/content/learn/choosing-the-state-structure.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,13 @@ button { margin-top: 10px; }
557557
558558
</Sandpack>
559559
560+
<<<<<<< HEAD
560561
(Vous pouvez également garder l’index sélectionné dans l’état.)
561562
562563
L’état était dupliqué de cette façon :
564+
=======
565+
The state used to be duplicated like this:
566+
>>>>>>> 081d1008dd1eebffb9550a3ff623860a7d977acf
563567
564568
* `items = [{ id: 0, title: 'pretzels'}, ...]`
565569
* `selectedItem = {id: 0, title: 'pretzels'}`

src/content/reference/react-dom/hooks/useFormStatus.md

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -185,26 +185,8 @@ import {useFormStatus} from 'react-dom';
185185
export default function UsernameForm() {
186186
const {pending, data} = useFormStatus();
187187

188-
const [showSubmitted, setShowSubmitted] = useState(false);
189-
const submittedUsername = useRef(null);
190-
const timeoutId = useRef(null);
191-
192-
useMemo(() => {
193-
if (pending) {
194-
submittedUsername.current = data?.get('username');
195-
if (timeoutId.current != null) {
196-
clearTimeout(timeoutId.current);
197-
}
198-
199-
timeoutId.current = setTimeout(() => {
200-
timeoutId.current = null;
201-
setShowSubmitted(false);
202-
}, 2000);
203-
setShowSubmitted(true);
204-
}
205-
}, [pending, data]);
206-
207188
return (
189+
<<<<<<< HEAD
208190
<>
209191
<label>Réserver l’identifiant : </label><br />
210192
<input type="text" name="username" />
@@ -215,17 +197,33 @@ export default function UsernameForm() {
215197
<p>Demande en cours pour l’identifiant : {submittedUsername.current}</p>
216198
) : null}
217199
</>
200+
=======
201+
<div>
202+
<h3>Request a Username: </h3>
203+
<input type="text" name="username" disabled={pending}/>
204+
<button type="submit" disabled={pending}>
205+
Submit
206+
</button>
207+
<br />
208+
<p>{data ? `Requesting ${data?.get("username")}...`: ''}</p>
209+
</div>
210+
>>>>>>> 081d1008dd1eebffb9550a3ff623860a7d977acf
218211
);
219212
}
220213
```
221214
222215
```js src/App.js
223216
import UsernameForm from './UsernameForm';
224217
import { submitForm } from "./actions.js";
218+
import {useRef} from 'react';
225219
226220
export default function App() {
221+
const ref = useRef(null);
227222
return (
228-
<form action={submitForm}>
223+
<form ref={ref} action={async (formData) => {
224+
await submitForm(formData);
225+
ref.current.reset();
226+
}}>
229227
<UsernameForm />
230228
</form>
231229
);
@@ -234,8 +232,22 @@ export default function App() {
234232
235233
```js src/actions.js hidden
236234
export async function submitForm(query) {
237-
await new Promise((res) => setTimeout(res, 1000));
235+
await new Promise((res) => setTimeout(res, 2000));
236+
}
237+
```
238+
239+
```css
240+
p {
241+
height: 14px;
242+
padding: 0;
243+
margin: 2px 0 0 0 ;
244+
font-size: 14px
238245
}
246+
247+
button {
248+
margin-left: 2px;
249+
}
250+
239251
```
240252
241253
```json package.json hidden

src/content/reference/react-dom/server/renderToNodeStream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Cette API sera retirée d'une future version majeure de React. Utilisez plutôt
1313
`renderToNodeStream` fait le rendu d'un arbre React dans un [flux Node.js en lecture](https://nodejs.org/api/stream.html#readable-streams).
1414

1515
```js
16-
const stream = renderToNodeStream(reactNode)
16+
const stream = renderToNodeStream(reactNode, options?)
1717
```
1818
1919
</Intro>
@@ -24,7 +24,7 @@ const stream = renderToNodeStream(reactNode)
2424
2525
## Référence {/*reference*/}
2626
27-
### `renderToNodeStream(reactNode)` {/*rendertonodestream*/}
27+
### `renderToNodeStream(reactNode, options?)` {/*rendertonodestream*/}
2828
2929
Côté serveur, appelez `renderToNodeStream` pour obtenir un [flux Node.js en lecture](https://nodejs.org/api/stream.html#readable-streams) que vous pouvez connecter *(pipe, NdT)* vers la réponse.
3030

src/content/reference/react-dom/server/renderToStaticMarkup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: renderToStaticMarkup
77
`renderToStaticMarkup` produit le HTML non interactif d'un arbre React.
88

99
```js
10-
const html = renderToStaticMarkup(reactNode)
10+
const html = renderToStaticMarkup(reactNode, options?)
1111
```
1212
1313
</Intro>
@@ -18,7 +18,7 @@ const html = renderToStaticMarkup(reactNode)
1818
1919
## Référence {/*reference*/}
2020
21-
### `renderToStaticMarkup(reactNode)` {/*rendertostaticmarkup*/}
21+
### `renderToStaticMarkup(reactNode, options?)` {/*rendertostaticmarkup*/}
2222
2323
Côté serveur, appelez `renderToStaticMarkup` pour produire le HTML de votre appli.
2424

src/content/reference/react-dom/server/renderToStaticNodeStream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: renderToStaticNodeStream
77
`renderToStaticNodeStream` fait le rendu non interactif d'une arborescence React dans un [flux Node.js en lecture](https://nodejs.org/api/stream.html#readable-streams).
88

99
```js
10-
const stream = renderToStaticNodeStream(reactNode)
10+
const stream = renderToStaticNodeStream(reactNode, options?)
1111
```
1212
1313
</Intro>
@@ -18,7 +18,7 @@ const stream = renderToStaticNodeStream(reactNode)
1818
1919
## Référence {/*reference*/}
2020
21-
### `renderToStaticNodeStream(reactNode)` {/*rendertostaticnodestream*/}
21+
### `renderToStaticNodeStream(reactNode, options?)` {/*rendertostaticnodestream*/}
2222
2323
Côté serveur, appelez `renderToStaticNodeStream` pour obtenir un [flux Node.js en lecture](https://nodejs.org/api/stream.html#readable-streams).
2424

src/content/reference/react-dom/server/renderToString.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ title: renderToString
1313
`renderToString` fait le rendu d'un arbre React sous forme de texte HTML.
1414

1515
```js
16-
const html = renderToString(reactNode)
16+
const html = renderToString(reactNode, options?)
1717
```
1818
1919
</Intro>
@@ -24,7 +24,7 @@ const html = renderToString(reactNode)
2424
2525
## Référence {/*reference*/}
2626
27-
### `renderToString(reactNode)` {/*rendertostring*/}
27+
### `renderToString(reactNode, options?)` {/*rendertostring*/}
2828
2929
Côté serveur, appelez `renderToString` pour produire le HTML de votre appli.
3030

0 commit comments

Comments
 (0)