You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/warnings/legacy-factories.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ function render() {
27
27
}
28
28
```
29
29
30
-
## Sin JSX {#sin-jsx}
30
+
## Sin JSX {#without-jsx}
31
31
32
32
Si no quieres o no puedes usar JSX, tendrás entonces que envolver tu componente en un *factory* antes de llamarlo:
33
33
@@ -42,7 +42,7 @@ function render() {
42
42
43
43
Esta es una ruta de actualización fácil si ya tienes muchas llamadas como función.
44
44
45
-
## Componentes dinámicos sin JSX {#componentes-dinamicos-sin-jsx}
45
+
## Componentes dinámicos sin JSX {#dynamic-components-without-jsx}
46
46
47
47
Si recibes un componente de clase de forma dinámica, entonces probablemente sea innecesario crear un *factory* para invocarlo inmediatamente. En su lugar puedes simplemente crear tu elemento en línea:
48
48
@@ -54,6 +54,6 @@ function render(MyComponent) {
54
54
}
55
55
```
56
56
57
-
## En profundidad {#en-profundidad}
57
+
## En profundidad {#in-depth}
58
58
59
59
[Lee más acerca de POR QUÉ estamos haciendo este cambio.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28)
0 commit comments