5
5
Deja el texto en los bloques de código sin traducir, excepto para los comentarios. Opcionalmente puedes traducir el texto en cadenas, ¡pero cuida de no traducir cadenas que hagan referencia a código!
6
6
7
7
Ejemplo:
8
+
8
9
``` js
9
10
// Example
10
11
const element = < h1> Hello, world< / h1> ;
11
- ReactDOM .render (element, document .getElementById (' root' ));
12
+ ReactDOM .render (element, document .getElementById (" root" ));
12
13
```
13
14
14
15
✅ CORRECTO:
15
16
16
17
``` js
17
18
// Ejemplo
18
19
const element = < h1> Hello, world< / h1> ;
19
- ReactDOM .render (element, document .getElementById (' root' ));
20
+ ReactDOM .render (element, document .getElementById (" root" ));
20
21
```
21
22
22
23
✅ TAMBIÉN CORRECTO:
23
24
24
25
``` js
25
26
// Ejemplo
26
27
const element = < h1> Hola mundo< / h1> ;
27
- ReactDOM .render (element, document .getElementById (' root' ));
28
+ ReactDOM .render (element, document .getElementById (" root" ));
28
29
```
29
30
30
31
❌ INCORRECTO:
@@ -34,23 +35,23 @@ ReactDOM.render(element, document.getElementById('root'));
34
35
const element = < h1> Hola mundo< / h1> ;
35
36
// "root" hace referencia a un indentificador de un elemento.
36
37
// NO LO TRADUZCAS
37
- ReactDOM .render (element, document .getElementById (' raíz' ));
38
+ ReactDOM .render (element, document .getElementById (" raíz" ));
38
39
```
39
40
40
41
❌ DEFINITIVAMENTE INCORRECTO:
41
42
42
43
``` js
43
44
// Ejemplo
44
45
const elemento = < h1> Hola mundo< / h1> ;
45
- ReactDOM .hacer (elemento, documento .obtenerElementoPorId (' raíz' ));
46
+ ReactDOM .hacer (elemento, documento .obtenerElementoPorId (" raíz" ));
46
47
```
47
48
48
49
## Enlaces externos
49
50
50
51
Si un enlace externo es a un artículo en un sitio de referencias como [ MDN] o [ Wikipedia] y existe una versión de este artículo en español con una calidad aceptable, considera sustituir el enlace por el de esa versión.
51
52
52
- [ MDN ] : https://developer.mozilla.org/en-US/
53
- [ Wikipedia ] : https://en.wikipedia.org/wiki/Main_Page
53
+ [ mdn ] : https://developer.mozilla.org/en-US/
54
+ [ wikipedia ] : https://en.wikipedia.org/wiki/Main_Page
54
55
55
56
Ejemplo:
56
57
@@ -74,35 +75,35 @@ Para mantener la consistencia y evitar regionalismos decidimos utilizar tú para
74
75
75
76
Aquí hay algunas sugerencias para la traducción de términos de uso común en este tipo de documentación técnica.
76
77
77
- | Original word/term | Suggestion |
78
- | ------------------ | ---------- |
79
- | array | * array * |
80
- | arrow function | función flecha |
81
- | assert | comprobar |
82
- | bug | error |
83
- | bundler | * bundler * |
84
- | callback | * callback * |
85
- | camelCase | * camelCase * |
86
- | controlled component | componente controlado |
87
- | Cheatsheet | * Cheatsheet * |
88
- | debugging | depuración |
89
- | DOM | DOM |
90
- | framework | * framework * |
91
- | function component | componente de función |
92
- | hook | * hook * |
93
- | key | * key * |
94
- | lazy initialization | inicialización diferida |
95
- | library | biblioteca |
96
- | lowercase | minúscula(s) |
97
- | props | * props * |
98
- | React element | Elemento de React |
99
- | Type | * tipo * |
100
- | Types | * tipos * |
101
- | render | renderizar (verb), renderizado (noun)
102
- | shallow rendering | renderizado superficial |
103
- | state | estado |
104
- | string | * string * |
105
- | template literals | * template literals * |
106
- | uncontrolled component | componente no controlado |
107
-
108
- Si desea agregar algo que falta, abra un [ Issue] ( https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new ) .
78
+ | Original word/term | Suggestion |
79
+ | ---------------------- | --------------------------- ---------- |
80
+ | array | _ array _ |
81
+ | arrow function | función flecha |
82
+ | assert | comprobar |
83
+ | bug | error |
84
+ | bundler | _ bundler _ |
85
+ | callback | _ callback _ |
86
+ | camelCase | _ camelCase _ |
87
+ | controlled component | componente controlado |
88
+ | Cheatsheet | _ Cheatsheet _ |
89
+ | debugging | depuración |
90
+ | DOM | DOM |
91
+ | framework | _ framework _ |
92
+ | function component | componente de función |
93
+ | hook | _ hook _ |
94
+ | key | _ key _ |
95
+ | lazy initialization | inicialización diferida |
96
+ | library | biblioteca |
97
+ | lowercase | minúscula(s) |
98
+ | props | _ props _ |
99
+ | React element | Elemento de React |
100
+ | Type | _ tipo _ |
101
+ | Types | _ tipos _ |
102
+ | render | renderizar (verb), renderizado (noun) |
103
+ | shallow rendering | renderizado superficial |
104
+ | state | estado |
105
+ | string | _ string _ |
106
+ | template literals | _ template literals _ |
107
+ | uncontrolled component | componente no controlado |
108
+
109
+ Si desea agregar algo que falta, abra un [ Issue] ( https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new ) .
0 commit comments