From ca9e175bde214dabbb821f951e30de0a1f2b723b Mon Sep 17 00:00:00 2001 From: Ramon <67976310+rei-rala@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:56:42 -0400 Subject: [PATCH] Update lazy.md (#933) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Traducción de comentario sobre declarar componentes lazy fuera del componente principal [Sección: Solución de problemas] --- src/content/reference/react/lazy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/lazy.md b/src/content/reference/react/lazy.md index e49dd409a..ff6378925 100644 --- a/src/content/reference/react/lazy.md +++ b/src/content/reference/react/lazy.md @@ -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() {