Skip to content

Commit 2287805

Browse files
committed
chore(sync): address all sync conflits, but not extra L10n
1 parent 71f212f commit 2287805

20 files changed

+114
-660
lines changed

src/content/community/acknowledgements.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ Nous aimerions remercier particulièrement certaines personnes ayant effectué d
5959

6060
Cette liste n'est pas exhaustive.
6161

62-
<<<<<<< HEAD
6362
Nous aimerions remercier tout particulièrement [Tom Occhino](https://github.com/tomocchino) et [Adam Wolff](https://github.com/wolffiex) pour leur encadrement et leur soutien au fil des ans. Nous sommes aussi reconnaissants à tou·te·s les bénévoles qui [traduisent React dans d'autres langues](https://translations.react.dev/) (vous trouverez le [détail pour le français ici](https://github.com/reactjs/fr.react.dev/blob/main/TRANSLATORS.md)).
64-
=======
65-
We'd like to give special thanks to [Tom Occhino](https://github.com/tomocchino) and [Adam Wolff](https://github.com/wolffiex) for their guidance and support over the years. We are also thankful to all the volunteers who [translated React into other languages.](https://translations.react.dev/)
66-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
6763

6864
## Encore quelques mercis {/*additional-thanks*/}
6965

src/content/community/conferences.md

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,6 @@ Vous connaissez une conférence React.js locale ? Ajoutez-la ! (Merci de conse
1010

1111
## Conférences à venir {/*upcoming-conferences*/}
1212

13-
<<<<<<< HEAD
14-
### React Nexus 2024 {/*react-nexus-2024*/}
15-
July 04 & 05, 2024. Bangalore, India (In-person event)
16-
17-
[Site web](https://reactnexus.com/) - [Twitter](https://twitter.com/ReactNexus) - [Linkedin](https://www.linkedin.com/company/react-nexus) - [YouTube](https://www.youtube.com/reactify_in)
18-
19-
### Chain React 2024 {/*chain-react-2024*/}
20-
July 17-19, 2024. In-person in Portland, OR, USA
21-
22-
[Site web](https://chainreactconf.com) - [Twitter](https://twitter.com/ChainReactConf)
23-
24-
### The Geek Conf 2024 {/*the-geek-conf-2024*/}
25-
July 25, 2024. In-person in Berlin, Germany + remote (hybrid event)
26-
27-
[Site web](https://thegeekconf.com) - [Twitter](https://twitter.com/thegeekconf)
28-
29-
### React Rally 2024 🐙 {/*react-rally-2024*/}
30-
August 12-13, 2024. Park City, UT, USA
31-
32-
[Site web](https://reactrally.com) - [Twitter](https://twitter.com/ReactRally) - [YouTube](https://www.youtube.com/channel/UCXBhQ05nu3L1abBUGeQ0ahw)
33-
34-
=======
35-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
3613
### React Universe Conf 2024 {/*react-universe-conf-2024*/}
3714
September 5-6, 2024. Wrocław, Poland.
3815

@@ -46,7 +23,7 @@ September 19-21, 2024. Alicante, Spain.
4623
### RenderCon Kenya 2024 {/*rendercon-kenya-2024*/}
4724
October 04 - 05, 2024. Nairobi, Kenya
4825

49-
[Website](https://rendercon.org/) - [Twitter](https://twitter.com/renderconke) - [LinkedIn](https://www.linkedin.com/company/renderconke/) - [YouTube](https://www.youtube.com/channel/UC0bCcG8gHUL4njDOpQGcMIA)
26+
[Site web](https://rendercon.org/) - [Twitter](https://twitter.com/renderconke) - [LinkedIn](https://www.linkedin.com/company/renderconke/) - [YouTube](https://www.youtube.com/channel/UC0bCcG8gHUL4njDOpQGcMIA)
5027

5128
### React India 2024 {/*react-india-2024*/}
5229
October 17 - 19, 2024. In-person in Goa, India (hybrid event) + Oct 15 2024 - remote day
@@ -61,58 +38,54 @@ October 18, 2024. In-person in Brussels, Belgium (hybrid event)
6138
### reactjsday 2024 {/*reactjsday-2024*/}
6239
October 25, 2024. In-person in Verona, Italy + online (hybrid event)
6340

64-
[Website](https://2024.reactjsday.it/) - [Twitter](https://x.com/reactjsday) - [Facebook](https://www.facebook.com/GrUSP/) - [YouTube](https://www.youtube.com/c/grusp)
41+
[Site web](https://2024.reactjsday.it/) - [Twitter](https://x.com/reactjsday) - [Facebook](https://www.facebook.com/GrUSP/) - [YouTube](https://www.youtube.com/c/grusp)
6542

6643
### React Advanced London 2024 {/*react-advanced-london-2024*/}
6744
October 25 & 28, 2024. In-person in London, UK + online (hybrid event)
6845

69-
[Website](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced)
46+
[Site web](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced)
7047

7148
### React Native London Conf 2024 {/*react-native-london-2024*/}
7249
November 14 & 15, 2024. In-person in London, UK
7350

74-
[Website](https://reactnativelondon.co.uk/) - [Twitter](https://x.com/RNLConf)
51+
[Site web](https://reactnativelondon.co.uk/) - [Twitter](https://x.com/RNLConf)
7552

7653
### React Summit US 2024 {/*react-summit-us-2024*/}
7754
November 19 & 22, 2024. In-person in New York, USA + online (hybrid event)
7855

79-
[Website](https://reactsummit.us/) - [Twitter](https://twitter.com/reactsummit) - [Videos](https://portal.gitnation.org/)
56+
[Site web](https://reactsummit.us/) - [Twitter](https://twitter.com/reactsummit) - [Videos](https://portal.gitnation.org/)
8057

8158
### React Africa 2024 {/*react-africa-2024*/}
8259
November 29, 2024. In-person in Casablanca, Morocco (hybrid event)
8360

8461
[Site web](https://react-africa.com/) - [Twitter](https://x.com/BeJS_)
8562

86-
<<<<<<< HEAD
87-
## Conférences passées {/*past-conferences*/}
88-
=======
8963
### React Day Berlin 2024 {/*react-day-berlin-2024*/}
9064
December 13 & 16, 2024. In-person in Berlin, Germany + remote (hybrid event)
9165

92-
[Website](https://reactday.berlin/) - [Twitter](https://x.com/reactdayberlin)
66+
[Site web](https://reactday.berlin/) - [Twitter](https://x.com/reactdayberlin)
9367

94-
## Past Conferences {/*past-conferences*/}
95-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
68+
## Conférences passées {/*past-conferences*/}
9669

9770
### React Rally 2024 🐙 {/*react-rally-2024*/}
9871
August 12-13, 2024. Park City, UT, USA
9972

100-
[Website](https://reactrally.com) - [Twitter](https://twitter.com/ReactRally) - [YouTube](https://www.youtube.com/channel/UCXBhQ05nu3L1abBUGeQ0ahw)
73+
[Site web](https://reactrally.com) - [Twitter](https://twitter.com/ReactRally) - [YouTube](https://www.youtube.com/channel/UCXBhQ05nu3L1abBUGeQ0ahw)
10174

10275
### The Geek Conf 2024 {/*the-geek-conf-2024*/}
10376
July 25, 2024. In-person in Berlin, Germany + remote (hybrid event)
10477

105-
[Website](https://thegeekconf.com) - [Twitter](https://twitter.com/thegeekconf)
78+
[Site web](https://thegeekconf.com) - [Twitter](https://twitter.com/thegeekconf)
10679

10780
### Chain React 2024 {/*chain-react-2024*/}
10881
July 17-19, 2024. In-person in Portland, OR, USA
10982

110-
[Website](https://chainreactconf.com) - [Twitter](https://twitter.com/ChainReactConf)
83+
[Site web](https://chainreactconf.com) - [Twitter](https://twitter.com/ChainReactConf)
11184

11285
### React Nexus 2024 {/*react-nexus-2024*/}
11386
July 04 & 05, 2024. Bangalore, India (In-person event)
11487

115-
[Website](https://reactnexus.com/) - [Twitter](https://twitter.com/ReactNexus) - [Linkedin](https://www.linkedin.com/company/react-nexus) - [YouTube](https://www.youtube.com/reactify_in)
88+
[Site web](https://reactnexus.com/) - [Twitter](https://twitter.com/ReactNexus) - [Linkedin](https://www.linkedin.com/company/react-nexus) - [YouTube](https://www.youtube.com/reactify_in)
11689

11790
### React Summit 2024 {/*react-summit-2024*/}
11891
June 14 & 18, 2024. In-person in Amsterdam, Netherlands + remote (hybrid event)

src/content/community/meetups.md

Lines changed: 5 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Vous connaissez un meetup React.js local ? Ajoutez-le ! (Merci de conserver un
5959
* [Saskatoon, SK](https://www.meetup.com/saskatoon-react-meetup/)
6060
* [Toronto, ON](https://www.meetup.com/Toronto-React-Native/events/)
6161

62-
<<<<<<< HEAD
6362
## Chili {/*chile*/}
6463
* [Santiago](https://www.meetup.com/es-ES/react-santiago/)
6564

@@ -68,99 +67,13 @@ Vous connaissez un meetup React.js local ? Ajoutez-le ! (Merci de conserver un
6867

6968
## Colombie {/*colombia*/}
7069
* [Bogotá](https://www.meetup.com/meetup-group-iHIeHykY/)
71-
=======
72-
## Colombia {/*colombia*/}
73-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
7470
* [Medellin](https://www.meetup.com/React-Medellin/)
7571

7672
## Danemark {/*denmark*/}
7773
* [Aalborg](https://www.meetup.com/Aalborg-React-React-Native-Meetup/)
7874
* [Aarhus](https://www.meetup.com/Aarhus-ReactJS-Meetup/)
7975

80-
<<<<<<< HEAD
8176
## Écosse (R.-U.) {/*scotland-uk*/}
82-
=======
83-
## England (UK) {/*england-uk*/}
84-
* [Manchester](https://www.meetup.com/Manchester-React-User-Group/)
85-
* [React.JS Girls London](https://www.meetup.com/ReactJS-Girls-London/)
86-
* [React Advanced London](https://guild.host/react-advanced-london)
87-
* [React Native London](https://guild.host/RNLDN)
88-
89-
## France {/*france*/}
90-
* [Lille](https://www.meetup.com/ReactBeerLille/)
91-
* [Paris](https://www.meetup.com/ReactJS-Paris/)
92-
93-
## Germany {/*germany*/}
94-
* [Cologne](https://www.meetup.com/React-Cologne/)
95-
* [Düsseldorf](https://www.meetup.com/de-DE/ReactJS-Meetup-Dusseldorf/)
96-
* [Hamburg](https://www.meetup.com/Hamburg-React-js-Meetup/)
97-
* [Karlsruhe](https://www.meetup.com/react_ka/)
98-
* [Kiel](https://www.meetup.com/Kiel-React-Native-Meetup/)
99-
* [Munich](https://www.meetup.com/ReactJS-Meetup-Munich/)
100-
* [React Berlin](https://guild.host/react-berlin)
101-
102-
## Greece {/*greece*/}
103-
* [Athens](https://www.meetup.com/React-To-React-Athens-MeetUp/)
104-
* [Thessaloniki](https://www.meetup.com/Thessaloniki-ReactJS-Meetup/)
105-
106-
## India {/*india*/}
107-
* [Ahmedabad](https://www.meetup.com/react-ahmedabad/)
108-
* [Bangalore (React)](https://www.meetup.com/ReactJS-Bangalore/)
109-
* [Bangalore (React Native)](https://www.meetup.com/React-Native-Bangalore-Meetup)
110-
* [Chennai](https://www.linkedin.com/company/chennaireact)
111-
* [Delhi NCR](https://www.meetup.com/React-Delhi-NCR/)
112-
* [Mumbai](https://reactmumbai.dev)
113-
* [Pune](https://www.meetup.com/ReactJS-and-Friends/)
114-
115-
## Indonesia {/*indonesia*/}
116-
* [Indonesia](https://www.meetup.com/reactindonesia/)
117-
118-
## Ireland {/*ireland*/}
119-
* [Dublin](https://guild.host/reactjs-dublin)
120-
121-
## Israel {/*israel*/}
122-
* [Tel Aviv](https://www.meetup.com/ReactJS-Israel/)
123-
124-
## Italy {/*italy*/}
125-
* [Milan](https://www.meetup.com/React-JS-Milano/)
126-
127-
## Japan {/*japan*/}
128-
* [Osaka](https://react-osaka.connpass.com/)
129-
130-
## Kenya {/*kenya*/}
131-
* [Nairobi - Reactdevske](https://kommunity.com/reactjs-developer-community-kenya-reactdevske)
132-
133-
## Malaysia {/*malaysia*/}
134-
* [Kuala Lumpur](https://www.kl-react.com/)
135-
* [Penang](https://www.facebook.com/groups/reactpenang/)
136-
137-
## Netherlands {/*netherlands*/}
138-
* [Amsterdam](https://guild.host/react-amsterdam)
139-
140-
## New Zealand {/*new-zealand*/}
141-
* [Wellington](https://www.meetup.com/React-Wellington/)
142-
143-
## Norway {/*norway*/}
144-
* [Norway](https://reactjs-norway.webflow.io/)
145-
* [Oslo](https://www.meetup.com/ReactJS-Oslo-Meetup/)
146-
147-
## Pakistan {/*pakistan*/}
148-
* [Karachi](https://www.facebook.com/groups/902678696597634/)
149-
* [Lahore](https://www.facebook.com/groups/ReactjsLahore/)
150-
151-
## Philippines {/*philippines*/}
152-
* [Manila](https://www.meetup.com/reactjs-developers-manila/)
153-
* [Manila - ReactJS PH](https://www.meetup.com/ReactJS-Philippines/)
154-
155-
## Poland {/*poland*/}
156-
* [Warsaw](https://www.meetup.com/React-js-Warsaw/)
157-
* [Wrocław](https://www.meetup.com/ReactJS-Wroclaw/)
158-
159-
## Portugal {/*portugal*/}
160-
* [Lisbon](https://www.meetup.com/JavaScript-Lisbon/)
161-
162-
## Scotland (UK) {/*scotland-uk*/}
163-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
16477
* [Edinburgh](https://www.meetup.com/React-Scotland/)
16578

16679
## Égypte {/*egypt*/}
@@ -169,25 +82,8 @@ Vous connaissez un meetup React.js local ? Ajoutez-le ! (Merci de conserver un
16982
## Espagne {/*spain*/}
17083
* [Barcelona](https://www.meetup.com/ReactJS-Barcelona/)
17184

172-
<<<<<<< HEAD
17385
## États-Unis {/*us*/}
17486
* [Ann Arbor, MI - ReactJS](https://www.meetup.com/AnnArbor-jsx/)
175-
=======
176-
## Sweden {/*sweden*/}
177-
* [Goteborg](https://www.meetup.com/ReactJS-Goteborg/)
178-
* [Stockholm](https://www.meetup.com/Stockholm-ReactJS-Meetup/)
179-
180-
## Switzerland {/*switzerland*/}
181-
* [Zurich](https://www.meetup.com/Zurich-ReactJS-Meetup/)
182-
183-
## Turkey {/*turkey*/}
184-
* [Istanbul](https://kommunity.com/reactjs-istanbul)
185-
186-
## Ukraine {/*ukraine*/}
187-
* [Kyiv](https://www.meetup.com/Kyiv-ReactJS-Meetup)
188-
189-
## US {/*us*/}
190-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
19187
* [Atlanta, GA - ReactJS](https://www.meetup.com/React-ATL/)
19288
* [Austin, TX - ReactJS](https://www.meetup.com/ReactJS-Austin-Meetup/)
19389
* [Boston, MA - ReactJS](https://www.meetup.com/ReactJS-Boston/)
@@ -226,22 +122,18 @@ Vous connaissez un meetup React.js local ? Ajoutez-le ! (Merci de conserver un
226122
* [Washington, DC - ReactJS](https://www.meetup.com/React-DC/)
227123

228124
## France {/*france*/}
229-
* [Nantes](https://www.meetup.com/React-Nantes/)
230125
* [Lille](https://www.meetup.com/ReactBeerLille/)
231126
* [Paris](https://www.meetup.com/ReactJS-Paris/)
232127

233128
## Grèce {/*greece*/}
234129
* [Athens](https://www.meetup.com/React-To-React-Athens-MeetUp/)
235130
* [Thessaloniki](https://www.meetup.com/Thessaloniki-ReactJS-Meetup/)
236131

237-
## Hongrie {/*hungary*/}
238-
* [Budapest](https://www.meetup.com/React-Budapest/)
239-
240132
## Inde {/*india*/}
241133
* [Ahmedabad](https://www.meetup.com/react-ahmedabad/)
242134
* [Bangalore (React)](https://www.meetup.com/ReactJS-Bangalore/)
243135
* [Bangalore (React Native)](https://www.meetup.com/React-Native-Bangalore-Meetup)
244-
* [Chennai](https://www.meetup.com/React-Chennai/)
136+
* [Chennai](https://www.linkedin.com/company/chennaireact)
245137
* [Delhi NCR](https://www.meetup.com/React-Delhi-NCR/)
246138
* [Mumbai](https://reactmumbai.dev)
247139
* [Pune](https://www.meetup.com/ReactJS-and-Friends/)
@@ -252,12 +144,15 @@ Vous connaissez un meetup React.js local ? Ajoutez-le ! (Merci de conserver un
252144
## Irlande {/*ireland*/}
253145
* [Dublin](https://guild.host/reactjs-dublin)
254146

255-
## Israël {/*israel*/}
147+
## Israel {/*israel*/}
256148
* [Tel Aviv](https://www.meetup.com/ReactJS-Israel/)
257149

258150
## Italie {/*italy*/}
259151
* [Milan](https://www.meetup.com/React-JS-Milano/)
260152

153+
## Japon {/*japan*/}
154+
* [Osaka](https://react-osaka.connpass.com/)
155+
261156
## Kenya {/*kenya*/}
262157
* [Nairobi - Reactdevske](https://kommunity.com/reactjs-developer-community-kenya-reactdevske)
263158

@@ -276,15 +171,9 @@ Vous connaissez un meetup React.js local ? Ajoutez-le ! (Merci de conserver un
276171
* [Karachi](https://www.facebook.com/groups/902678696597634/)
277172
* [Lahore](https://www.facebook.com/groups/ReactjsLahore/)
278173

279-
## Panama {/*panama*/}
280-
* [Panama](https://www.meetup.com/React-Panama/)
281-
282174
## Pays-Bas {/*netherlands*/}
283175
* [Amsterdam](https://guild.host/react-amsterdam)
284176

285-
## Pérou {/*peru*/}
286-
* [Lima](https://www.meetup.com/ReactJS-Peru/)
287-
288177
## Philippines {/*philippines*/}
289178
* [Manila](https://www.meetup.com/reactjs-developers-manila/)
290179
* [Manila - ReactJS PH](https://www.meetup.com/ReactJS-Philippines/)

src/content/learn/conditional-rendering.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ export default function PackingList() {
5252

5353
</Sandpack>
5454

55-
<<<<<<< HEAD
56-
Remarquez que certains composants `Item` ont leur prop `isPacked` à `true` plutôt qu'à `false`. Vous souhaitez ajouter une coche (✔) aux objets pour lesquels `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+
Remarquez que certains composants `Item` ont leur prop `isPacked` à `true` plutôt qu'à `false`. Vous souhaitez ajouter une coche (✅) aux objets pour lesquels `isPacked={true}`.
6056

6157
Vous pourriez écrire ça sous forme [d'instruction `if`/`else`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/if...else), comme ceci :
6258

@@ -206,11 +202,7 @@ return (
206202
);
207203
```
208204

209-
<<<<<<< HEAD
210-
Vous pouvez le lire comme suit : *« si `isPacked` est vrai, alors (`?`) affiche `name + ' ✔'`, sinon (`:`) affiche `name` »*.
211-
=======
212-
You can read it as *"if `isPacked` is true, then (`?`) render `name + ' ✅'`, otherwise (`:`) render `name`"*.
213-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
205+
Vous pouvez le lire comme suit : *« si `isPacked` est vrai, alors (`?`) affiche `name + ' ✅'`, sinon (`:`) affiche `name` »*.
214206

215207
<DeepDive>
216208

src/content/learn/synchronizing-with-effects.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -626,11 +626,7 @@ Parcourez les exemples ci-dessous pour découvrir comment gérer les cas les plu
626626
627627
### Contrôler des widgets non-React {/*controlling-non-react-widgets*/}
628628
629-
<<<<<<< HEAD
630629
Vous aurez parfois besoin d'ajouter des widgets d’UI qui ne sont pas écrits en React. Par exemple, imaginons que vous souhaitiez ajouter un composant carte à votre page. Il dispose d’une méthode `setZoomLevel()` et vous aimeriez synchroniser son niveau de zoom avec une variable d’état `zoomLevel` dans votre code React. L’Effet pour y parvenir ressemblerait à ceci :
631-
=======
632-
Sometimes you need to add UI widgets that aren't written in React. For example, let's say you're adding a map component to your page. It has a `setZoomLevel()` method, and you'd like to keep the zoom level in sync with a `zoomLevel` state variable in your React code. Your Effect would look similar to this:
633-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
634630
635631
```js
636632
useEffect(() => {

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,19 +265,11 @@ Lors de l'étape précédente, vous avez trouvé deux éléments d'état pour ce
265265

266266
Déroulons notre stratégie pour eux :
267267

268-
<<<<<<< HEAD
269268
1. **Identifier les composants qui utilisent l'état** :
270269
- `ProductTable` a besoin de filtrer la liste des produits sur base de cet état (texte de la recherche et état de la case à cocher).
271270
- `SearchBar` a besoin d'afficher cet état (texte de la recherche et état de la case à cocher).
272271
2. **Trouver leur ancêtre commun** : le plus proche ancêtre commun à ces deux composants est `FilterableProductTable`.
273272
3. **Décider où l'état devrait vivre** : nous stockerons le texte de la recherche et l'état de la case à cocher dans `FilterableProductTable`.
274-
=======
275-
1. **Identify components that use state:**
276-
* `ProductTable` needs to filter the product list based on that state (search text and checkbox value).
277-
* `SearchBar` needs to display that state (search text and checkbox value).
278-
2. **Find their common parent:** The first parent component both components share is `FilterableProductTable`.
279-
3. **Decide where the state lives**: We'll keep the filter text and checked state values in `FilterableProductTable`.
280-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
281273

282274
Ainsi, les valeurs d'état vivront dans `FilterableProductTable`.
283275

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,11 +1139,7 @@ On appelle alors la fonction `setSquares` pour avertir React que l'état du comp
11391139
11401140
<Note>
11411141
1142-
<<<<<<< HEAD
1143-
JavaScript utilise des [fermetures lexicales](https://developer.mozilla.org/docs/Web/JavaScript/Closures), ce qui signifie qu'une fonction imbriquée (ex. `handleClick`) a accès aux variables et fonctions définies dans une fonction englobante (ex. `Board`). La fonction `handleClick` peut lire l'état `squares` et appeler la fonction `setSquares` parce que les deux sont définis dans la fonction`Board`.
1144-
=======
1145-
JavaScript supports [closures](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures) which means an inner function (e.g. `handleClick`) has access to variables and functions defined in an outer function (e.g. `Board`). The `handleClick` function can read the `squares` state and call the `setSquares` method because they are both defined inside of the `Board` function.
1146-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
1142+
JavaScript utilise des [fermetures lexicales](https://developer.mozilla.org/docs/Web/JavaScript/Closures), ce qui signifie qu'une fonction imbriquée (ex. `handleClick`) a accès aux variables et fonctions définies dans une fonction englobante (ex. `Board`). La fonction `handleClick` peut lire l'état `squares` et appeler la fonction `setSquares` parce que les deux sont définis dans la fonction `Board`.
11471143
11481144
</Note>
11491145

src/content/learn/updating-objects-in-state.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,7 @@ Notez que la syntaxe de *spread* `...` est « superficielle » : elle ne réa
379379

380380
#### Utiliser un seul gestionnaire d’événement pour plusieurs champs {/*using-a-single-event-handler-for-multiple-fields*/}
381381

382-
<<<<<<< HEAD
383382
Vous pouvez également utiliser les crochets `[` et `]` à l’intérieur de la définition de votre objet pour spécifier une propriété avec un nom dynamique. Voici le même exemple, mais avec un seul gestionnaire d’événement au lieu de trois différents :
384-
=======
385-
You can also use the `[` and `]` braces inside your object definition to specify a property with a dynamic name. Here is the same example, but with a single event handler instead of three different ones:
386-
>>>>>>> 2b2d0f2309f49c82cf5bb88ea62fb2e44661c634
387383

388384
<Sandpack>
389385

0 commit comments

Comments
 (0)