Skip to content

Commit 2581f05

Browse files
translating styling
1 parent f4a1f84 commit 2581f05

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

content/docs/faq-styling.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ layout: docs
66
category: FAQ
77
---
88

9-
### How do I add CSS classes to components? {#how-do-i-add-css-classes-to-components}
9+
### Bagaimana saya menambahkan kelas CSS ke komponen? {#how-do-i-add-css-classes-to-components}
1010

11-
Pass a string as the `className` prop:
11+
Lewati sebuah string sebagai properti `className`:
1212

1313
```jsx
1414
render() {
1515
return <span className="menu navigation-menu">Menu</span>
1616
}
1717
```
1818

19-
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:
2020

2121
```jsx
2222
render() {
@@ -32,20 +32,20 @@ render() {
3232
>
3333
>If you often find yourself writing code like this, [classnames](https://www.npmjs.com/package/classnames#usage-with-reactjs) package can simplify it.
3434
35-
### Can I use inline styles? {#can-i-use-inline-styles}
35+
### Dapatkah saya menggunakan style di barisan? {#can-i-use-inline-styles}
3636

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).
3838

39-
### Are inline styles bad? {#are-inline-styles-bad}
39+
### Apakah style di barisan buruk? {#are-inline-styles-bad}
4040

41-
CSS classes are generally better for performance than inline styles.
41+
Kelas CSS umumnya lebih baik untuk performa daripada style di barisan.
4242

43-
### What is CSS-in-JS? {#what-is-css-in-js}
43+
### Apa yang dimaksud dengan CSS-dalam-JS? {#what-is-css-in-js}
4444

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).
4646

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).
4848

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}
5050

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

Comments
 (0)