Skip to content

Commit 43c1b80

Browse files
authored
Merge pull request #632 from reactjs/sync-63c77695
Sync with reactjs.org @ 63c7769
2 parents 3625244 + cf51f9a commit 43c1b80

12 files changed

+7
-7
lines changed

beta/public/images/og-blog.png

302 KB
Loading

beta/public/images/og-community.png

304 KB
Loading

beta/public/images/og-home.png

294 KB
Loading

beta/public/images/og-learn.png

303 KB
Loading

beta/public/images/og-reference.png

613 KB
Loading

beta/public/images/og-unknown.png

294 KB
Loading

beta/src/content/learn/escape-hatches.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,14 +471,14 @@ This is not ideal. You want to re-connect to the chat only if the `roomId` has c
471471

472472
```js
473473
import { useState, useEffect } from 'react';
474-
import { experimental_useEvent as useEvent } from 'react';
474+
import { experimental_useEffectEvent as useEffectEvent } from 'react';
475475
import { createConnection, sendMessage } from './chat.js';
476476
import { showNotification } from './notifications.js';
477477

478478
const serverUrl = 'https://localhost:1234';
479479

480480
function ChatRoom({ roomId, theme }) {
481-
const onConnected = useEvent(() => {
481+
const onConnected = useEffectEvent(() => {
482482
showNotification('Connected!', theme);
483483
});
484484

beta/src/content/learn/lifecycle-of-reactive-effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ If you have an existing codebase, you might have some Effects that suppress the
748748
useEffect(() => {
749749
// ...
750750
// 🔴 Avoid suppressing the linter like this:
751-
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
751+
// eslint-ignore-next-line react-hooks/exhaustive-deps
752752
}, []);
753753
```
754754

beta/src/content/learn/removing-effect-dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Si tienes una base de código existente, puede que tengas algunos Efectos que su
285285
useEffect(() => {
286286
// ...
287287
// 🔴 Evita suprimir así la advertencia del linter:
288-
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
288+
// eslint-ignore-next-line react-hooks/exhaustive-deps
289289
}, []);
290290
```
291291

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const isElement = isValidElement(value)
2323
Llama a `isValidElement(value)` para comprobar si `value` es un elemento de React.
2424

2525
```js
26-
import { isValidElement } from 'react';
26+
import { isValidElement, createElement } from 'react';
2727

2828
// ✅ Elementos de React
2929
console.log(isValidElement(<p />)); // true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ Si tienes una base de código existente, puede que tengas algunos efectos que su
11301130
useEffect(() => {
11311131
// ...
11321132
// 🔴 Evite suprimir el linter de esta manera:
1133-
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
1133+
// eslint-ignore-next-line react-hooks/exhaustive-deps
11341134
}, []);
11351135
```
11361136

content/docs/how-to-contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ El equipo principal está monitoreando los *pull requests*. Revisaremos tu *pull
8989
3. Si has corregido un error o has agregado un código que debería probarse, ¡agrega pruebas!
9090
4. Asegúrate de que el conjunto de pruebas pasa (`yarn test`). Consejo: `yarn test --watch TestName` es útil en desarrollo.
9191
5. Ejecuta `yarn test --prod` para probar en el entorno de producción.
92-
6. Si necesitas un depurador, ejecuta `yarn debug-test --watch TestName`, abre `chrome://inspect` y presiona "Inspeccionar".
92+
6. Si necesitas un depurador, ejecuta `yarn test --debug --watch TestName`, abre `chrome://inspect` y presiona "Inspeccionar".
9393
7. Formatea tu código con [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
9494
8. Asegúrate de ejecutar lint en tu código (`yarn lint`). Consejo: `yarn linc` para verificar solo los archivos modificados.
9595
9. Ejecuta los controles de tipo de [Flow](https://flowtype.org/) (`yarn flow`).

0 commit comments

Comments
 (0)