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
+
Ini umum untuk kelas CSS bergantung kepada komponen properti atau state:
20
20
21
21
```jsx
22
22
render() {
@@ -32,20 +32,20 @@ render() {
32
32
>
33
33
>If you often find yourself writing code like this, [classnames](https://www.npmjs.com/package/classnames#usage-with-reactjs) package can simplify it.
34
34
35
-
### Can I use inline styles? {#can-i-use-inline-styles}
35
+
### Dapatkah saya menggunakan style di barisan? {#can-i-use-inline-styles}
36
36
37
-
Yes, see the docs on styling [here](/docs/dom-elements.html#style).
37
+
Ya, lihat dokumen pada styling [disini](/docs/dom-elements.html#style).
38
38
39
-
### Are inline styles bad? {#are-inline-styles-bad}
39
+
### Apakah style di barisan buruk? {#are-inline-styles-bad}
40
40
41
-
CSS classes are generally better for performance than inline styles.
41
+
Kelas CSS umumnya lebih baik untuk performa daripada style di barisan.
42
42
43
-
### What is CSS-in-JS? {#what-is-css-in-js}
43
+
### Apa yang dimaksud dengan CSS-dalam-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-dalam-JS" mengacu kepada pola dimana CSS disusun menggunakan JavaScript bukannya didefinisikan di luar arsip.[disini](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
+
_Perhatikan bahwa fungsi ini bukan bagian dari React, tetapi disediakan oleh library dari pihak ketiga._ React tidak memiliki pendapat tentang bagaimana style didefinisikan; jika ragu, titik awal yang baik adalah mendefinisikan style anda secara terpisah dalam file`*.css`seperti biasa dan arahkan ke mereka menggunakan[`className`](/docs/dom-elements.html#classname).
48
48
49
-
### Can I do animations in React?{#can-i-do-animations-in-react}
49
+
### Dapatkah saya membuat animasi di 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 dapat digunakan untuk menggerakkan animasi. Lihat[React Transition Group](https://reactcommunity.org/react-transition-group/)dan[React Motion](https://github.com/chenglou/react-motion), untuk contoh.
0 commit comments