Skip to content

Commit

Permalink
Update lazy.md (#933)
Browse files Browse the repository at this point in the history
Traducción de comentario sobre declarar componentes lazy fuera del componente principal [Sección: Solución de problemas]
  • Loading branch information
rei-rala authored Jul 18, 2024
1 parent 3eebf3c commit ca9e175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/lazy.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ En cambio, decláralos siempre en el nivel superior de tu módulo:
```js {3-4}
import { lazy } from 'react';

//Good: Declare lazy components outside of your components
//Bien: Declarar componentes lazy fuera de tus componentes
const MarkdownPreview = lazy(() => import('./MarkdownPreview.js'));

function Editor() {
Expand Down

0 comments on commit ca9e175

Please sign in to comment.