Skip to content

Commit b1d7330

Browse files
AyuPermatasariresir014
authored andcommitted
translating styling (#64)
* translating styling * Update faq-styling
1 parent 4fe9314 commit b1d7330

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: 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+
Melewatkan 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+
Merupakan hal yang umum bagi kelas CSS untuk bergantung pada properti komponen 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 _inline styles_? {#can-i-use-inline-styles}
3636

37-
Yes, see the docs on styling [here](/docs/dom-elements.html#style).
37+
Ya, lihat dokumen untuk _styling_ [disini](/docs/dom-elements.html#style).
3838

39-
### Are inline styles bad? {#are-inline-styles-bad}
39+
### Apakah _inline styles_ buruk? {#are-inline-styles-bad}
4040

41-
CSS classes are generally better for performance than inline styles.
41+
Performa kelas CSS biasanya lebih baik daripada _inline styles._
4242

43-
### What is CSS-in-JS? {#what-is-css-in-js}
43+
### Apa yang dimaksud dengan CSS-in-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-in-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)