Skip to content

Commit 5162933

Browse files
carburogaearonhwanyoungChoiapherioakiran
authored
Merge pull request #625 from reactjs/sync-d4e42ab2
* Fix typo * Update reference Profiler.md (#5502) * Fix typo, closes #5505 * Update conference lists for beta docs (#5529) * Update past conferences chronological list * Update React India 2023 dates on beta docs * Fix conference order for past conferences 2022 * Fix failing header id lint error : ; lld ; * Announce react india 2023 conference dates (#5525) * Update instructions to Babel 7 * Added react nexus to the conference list (#5536) * Add missing word (#5537) * Resolve merge conflicts --------- Co-authored-by: Dan Abramov <[email protected]> Co-authored-by: Cony <[email protected]> Co-authored-by: Sahil Mhapsekar <[email protected]> Co-authored-by: Kiran Abburi <[email protected]> Co-authored-by: Beau House <[email protected]> Co-authored-by: Rainer Martinez <[email protected]>
2 parents 88ae372 + 5874356 commit 5162933

File tree

7 files changed

+36
-21
lines changed

7 files changed

+36
-21
lines changed

beta/src/content/community/conferences.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +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-
### React Global Online Summit 22.2 by Geekle {/*react-global-online-summit-222-by-geekle*/}
14-
November 8 - 9, 2022 - Online Summit
15-
16-
[Website](https://events.geekle.us/react3/) - [LinkedIn](https://www.linkedin.com/posts/geekle-us_event-react-reactjs-activity-6964904611207864320-gpDx?utm_source=share&utm_medium=member_desktop)
17-
18-
### Remix Conf Europe 2022 {/*remix-conf-europe-2022*/}
19-
November 18, 2022, 7am PST / 10am EST / 4pm CET - remote event
20-
21-
[Website](https://remixconf.eu/) - [Twitter](https://twitter.com/remixconfeu)
22-
23-
### React Day Berlin 2022 {/*react-day-berlin-2022*/}
24-
December 2, 2022. In-person in Berlin, Germany + remote (hybrid event)
25-
26-
[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.facebook.com/reactdayberlin/) - [Videos](https://www.youtube.com/c/ReactConferences)
27-
2813
### RemixConf 2023 {/*remixconf-2023*/}
2914
May, 2023. Salt Lake City, UT
3015

@@ -50,8 +35,28 @@ June 27th, 2023. Tel Aviv, Israel
5035

5136
[Website](https://www.react-next.com/) - [Facebook](https://www.facebook.com/ReactNextConf) - [Youtube](https://www.youtube.com/@ReactNext)
5237

38+
### React India 2023 {/*react-india-2023*/}
39+
Oct 5 - 7, 2023. In-person in Goa, India (hybrid event) + Oct 3 2023 - remote day
40+
41+
[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)
42+
5343
## Past Conferences {/*past-conferences*/}
5444

45+
### React Day Berlin 2022 {/*react-day-berlin-2022*/}
46+
December 2, 2022. In-person in Berlin, Germany + remote (hybrid event)
47+
48+
[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.facebook.com/reactdayberlin/) - [Videos](https://www.youtube.com/c/ReactConferences)
49+
50+
### React Global Online Summit 22.2 by Geekle {/*react-global-online-summit-222-by-geekle*/}
51+
November 8 - 9, 2022 - Online Summit
52+
53+
[Website](https://events.geekle.us/react3/) - [LinkedIn](https://www.linkedin.com/posts/geekle-us_event-react-reactjs-activity-6964904611207864320-gpDx?utm_source=share&utm_medium=member_desktop)
54+
55+
### Remix Conf Europe 2022 {/*remix-conf-europe-2022*/}
56+
November 18, 2022, 7am PST / 10am EST / 4pm CET - remote event
57+
58+
[Website](https://remixconf.eu/) - [Twitter](https://twitter.com/remixconfeu)
59+
5560
### React Advanced 2022 {/*react-advanced-2022*/}
5661
October 21 & 25, 2022. In-person in London, UK + remote (hybrid event)
5762

beta/src/content/learn/add-react-to-a-website.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Añadir JSX a un proyecto no requiere herramientas complicadas como un [*bundler
196196
Ve a la carpeta de tu proyecto en la terminal, y pega estos dos comandos (**¡Asegúrate de tener instalado [Node.js](https://nodejs.org/)!**):
197197

198198
1. `npm init -y` (si falla, [aquí hay una solución](https://gist.github.com/gaearon/246f6380610e262f8a648e3e51cad40d))
199-
2. `npm install babel-cli@6 babel-preset-react-app@3`
199+
2. `npm install @babel/cli@7 babel-preset-react-app@10`
200200

201201
Solo necesitas npm para instalar el preprocesador de JSX. No lo necesitarás para nada más. Tanto React como el código de la aplicación se pueden quedar como etiquetas `<script>` sin cambios.
202202

@@ -207,7 +207,7 @@ Solo necesitas npm para instalar el preprocesador de JSX. No lo necesitarás par
207207
Puedes preprocesar JSX de forma tal que cada vez que guardes un archivo con JSX dentro, la transformación se vuelva a ejecutar y convierta el JSX en un archivo nuevo con JavaScript simple que el navegador puede entender. Aquí puedes ver cómo hacer la configuración:
208208

209209
1. Crea una carpeta llamada **`src`**.
210-
2. En tu terminal, ejecuta este comando: `npx babel --watch src --out-dir . --presets react-app/prod ` (¡No esperes a que termine! Este comando inicia un *watcher* (observador) automático para las ediciones de JSX dentro de `src`).
210+
2. En tu terminal, ejecuta este comando: `npx babel --watch src --out-dir . --presets babel-preset-react-app/prod ` (¡No esperes a que termine! Este comando inicia un *watcher* (observador) automático para las ediciones de JSX dentro de `src`).
211211
3. Mueve tu **`like-button.js`** con JSX ([¡debería lucir así!](https://gist.githubusercontent.com/gaearon/be5ae0fbf563d6c5fe5c1563907b13d2/raw/4c0d0b8c7f4fcb341720424c28c72059f8174c62/like-button.js)) a la nueva carpeta **`src`**.
212212

213213
El *watcher* creará un **`like-button.js`** preprocesado con el código JavaScript simple que es adecuado para un navegador.

beta/src/content/reference/react-dom/components/select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ select { display: block; margin-top: 10px; width: 200px; }
223223

224224
### Reading the select box value when submitting a form {/*reading-the-select-box-value-when-submitting-a-form*/}
225225

226-
Add a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) around your textarea with a [`<button type="submit">`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button) inside. It will call your `<form onSubmit>` event handler. By default, the browser will send the form data to the current URL and refresh the page. You can override that behavior by calling `e.preventDefault()`. To read the form data, use [`new FormData(e.target)`](https://developer.mozilla.org/en-US/docs/Web/API/FormData).
226+
Add a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) around your select box with a [`<button type="submit">`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button) inside. It will call your `<form onSubmit>` event handler. By default, the browser will send the form data to the current URL and refresh the page. You can override that behavior by calling `e.preventDefault()`. To read the form data, use [`new FormData(e.target)`](https://developer.mozilla.org/en-US/docs/Web/API/FormData).
227227
<Sandpack>
228228

229229
```js

beta/src/content/reference/react-dom/hydrate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ React se unirá al HTML que existe dentro del nodo DOM `domNode`, y se encargar
6464
6565
Llama a `hydrate` para unir un <CodeStep step={1}>componente de React</CodeStep> a un <CodeStep step={2}>nodo DOM del navegador</CodeStep> renderizado por el servidor.
6666
67-
```js [[1, 3, "document.getElementById('root')"], [2, 3, "<App />"]]
67+
```js [[1, 3, "<App />"], [2, 3, "document.getElementById('root')"]]
6868
import {hydrate} from 'react-dom';
6969

7070
hydrate(<App />, document.getElementById('root'));

beta/src/content/reference/react/Profiler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function onRender(id, phase, actualDuration, baseDuration, startTime, commitTime
5454
#### Parameters {/*onrender-parameters*/}
5555

5656
* `id`: The string `id` prop of the `<Profiler>` tree that has just committed. This lets you identify which part of the tree was committed if you are using multiple profilers.
57-
* `phase`: Either `"mount"` or `"update"`. This lets you know whether the tree has just been mounted for the first time or re-rendered due to a change in props, state, or hooks.
57+
* `phase`: `"mount"`, `"update"` or `"nested-update"`. This lets you know whether the tree has just been mounted for the first time or re-rendered due to a change in props, state, or hooks.
5858
* `actualDuration`: The number of milliseconds spent rendering the `<Profiler>` and its descendants for the current update. This indicates how well the subtree makes use of memoization (e.g. [`memo`](/reference/react/memo) and [`useMemo`](/reference/react/useMemo)). Ideally this value should decrease significantly after the initial mount as many of the descendants will only need to re-render if their specific props change.
5959
* `baseDuration`: The number of milliseconds estimating how much time it would take to re-render the entire `<Profiler>` subtree without any optimizations. It is calculated by summing up the most recent render durations of each component in the tree. This value estimates a worst-case cost of rendering (e.g. the initial mount or a tree with no memoization). Compare `actualDuration` against it to see if memoization is working.
6060
* `startTime`: A numeric timestamp for when React began rendering the current update.

beta/src/content/reference/react/useMemo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ Un nodo de JSX como `<List items={visibleTodos} />` es un objeto como `{ type: L
633633

634634
Sin embargo, si React ve exactamente el mismo JSX que durante el renderizado anterior, no intentará volver a renderizar tu componente. Esto se debe a que los nodos JSX son [inmutables.](https://es.wikipedia.org/wiki/Objeto_inmutable) Un objeto de nodo JSX no podría haber cambiado con el tiempo, por lo que React sabe que es seguro omitir un nuevo renderizado. Sin embargo, para que esto funcione, el nodo tiene que *ser realmente el mismo objeto*, no simplemente tener el mismo aspecto en el código. Esto es lo que hace `useMemo` en este ejemplo.
635635

636-
Envolver manualmente los nodos JSX en `useMemo` no es conveniente. Por ejemplo, no puedes hacerlo condicionalmente. Es por esto que lo común es envolver los componentes con [`memo`](/reference/react/memo) en lugar de envolver los nodos de JSX.
636+
Envolver manualmente los nodos JSX en `useMemo` no es conveniente. Por ejemplo, no puedes hacerlo condicionalmente. Comúnmente es por esto que se envuelven los componentes con [`memo`](/reference/react/memo) en lugar de envolver los nodos de JSX.
637637

638638
</DeepDive>
639639

content/community/conferences.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ June 27th, 2023. Tel Aviv, Israel
5252

5353
[Website](https://www.react-next.com/) - [Facebook](https://www.facebook.com/ReactNextConf) - [Youtube](https://www.youtube.com/@ReactNext)
5454

55+
### React Nexus 2023 {#react-nexus-2023}
56+
July 07 & 08, 2023. In-person in Bangalore, India
57+
58+
[Website](https://reactnexus.com/) - [Twitter](https://twitter.com/ReactNexus) - [Linkedin](https://www.linkedin.com/company/react-nexus) - [YouTube](https://www.youtube.com/reactify_in)
59+
60+
### React India 2023 {#react-india-2023}
61+
Oct 5 - 7, 2023. In-person in Goa, India (hybrid event) + Oct 3 2023 - remote day
62+
63+
[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)
64+
5565
## Past Conferences {#past-conferences}
5666

5767
### React Advanced 2022 {#react-advanced-2022}

0 commit comments

Comments
 (0)