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
It is common for CSS classes to depend on the component props or state:
19
+
Es común que las clases CSS dependan de las props o del estado del componente:
20
20
21
21
```jsx
22
22
render() {
@@ -30,22 +30,22 @@ render() {
30
30
31
31
>Tip
32
32
>
33
-
>If you often find yourself writing code like this,[classnames](https://www.npmjs.com/package/classnames#usage-with-reactjs)package can simplify it.
33
+
>Si a menudo escribes código como este, el paquete[classnames](https://www.npmjs.com/package/classnames#usage-with-reactjs)puede hacerlo más simple.
34
34
35
-
### Can I use inline styles? {#can-i-use-inline-styles}
35
+
### ¿Puedo usar estilos en línea? {#can-i-use-inline-styles}
36
36
37
-
Yes, see the docs on styling [here](/docs/dom-elements.html#style).
37
+
Sí, ve la documentación sobre estilo [aquí](/docs/dom-elements.html#style).
38
38
39
-
### Are inline styles bad? {#are-inline-styles-bad}
39
+
### ¿Los estilos en línea son malos? {#are-inline-styles-bad}
40
40
41
-
CSS classes are generally better for performance than inline styles.
41
+
Las clases CSS son generalmente mejores para el rendimiento que los estilos en línea.
42
42
43
-
### What is CSS-in-JS? {#what-is-css-in-js}
43
+
### ¿Qué es CSS-in-JS? {#what-is-css-in-js}
44
44
45
-
"CSS-in-JS" refers to a pattern where CSS is composed using JavaScript instead of defined in external files. Read a comparison of CSS-in-JS libraries [here](https://github.com/MicheleBertoli/css-in-js).
45
+
"CSS-in-JS" se refiere a un patrón donde el CSS se compone usando JavaScript en lugar de definirlo en archivos externos. Lee una comparación de las bibliotecas CSS-in-JS [aquí](https://github.com/MicheleBertoli/css-in-js).
46
46
47
-
_Note that this functionality is not a part of React, but provided by third-party libraries._ React does not have an opinion about how styles are defined; if in doubt, a good starting point is to define your styles in a separate`*.css`file as usual and refer to them using[`className`](/docs/dom-elements.html#classname).
47
+
_Ten en cuenta que esta funcionalidad no es parte de React, sino que es proporcionada por bibliotecas de terceros._ React no tiene una opinión sobre cómo se definen los estilos; en caso de dudas, un buen punto de partida es definir tus estilos en un archivo`*.css`separado como de costumbre y referirse a ellos usando[`className`](/docs/dom-elements.html#classname).
48
48
49
-
### Can I do animations in React? {#can-i-do-animations-in-react}
49
+
### ¿Puedo hacer animaciones en React? {#can-i-do-animations-in-react}
50
50
51
-
React can be used to power animations. See[React Transition Group](https://reactcommunity.org/react-transition-group/)and[React Motion](https://github.com/chenglou/react-motion), for example.
51
+
React puede usarse para potenciar animaciones. Revisa[React Transition Group](https://reactcommunity.org/react-transition-group/)y[React Motion](https://github.com/chenglou/react-motion), por ejemplo.
0 commit comments