Skip to content

Commit b9b34d7

Browse files
Apply suggestions from code review
Co-authored-by: Peng Jie <dean.leehom@gmail.com>
1 parent 1c2059e commit b9b34d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/docs/faq-styling.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ category: FAQ
88

99
### 如何在 Component 中加入 CSS Class? {#how-do-i-add-css-classes-to-components}
1010

11-
把字串以 prop `className` 傳入
11+
傳遞一個 string 作為 `className` 的 prop
1212

1313
```jsx
1414
render() {
@@ -32,11 +32,11 @@ render() {
3232
>
3333
>如果你發現你常寫類似的程式碼,可使用 [classnames](https://www.npmjs.com/package/classnames#usage-with-reactjs) 函式庫簡化。
3434
35-
### 可以使用 inline style 嗎? {#can-i-use-inline-styles}
35+
### 可以使用 Inline Style 嗎? {#can-i-use-inline-styles}
3636

37-
可以,請見 [此處](/docs/dom-elements.html#style) 文件關於 styling 部分。
37+
可以,請見[此處](/docs/dom-elements.html#style) 文件關於 styling 部分。
3838

39-
### inline styles 不好嗎? {#are-inline-styles-bad}
39+
### Inline Style 不好嗎? {#are-inline-styles-bad}
4040

4141
CSS class 通常比 inline style 效能更好。
4242

0 commit comments

Comments
 (0)