Skip to content

Commit

Permalink
Update content/docs/components-and-props.md
Browse files Browse the repository at this point in the history
Co-Authored-By: bugtender <[email protected]>
  • Loading branch information
chloewlin and bugtender authored Feb 18, 2019
1 parent 967a6b8 commit b2c6dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/components-and-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Welcome(props) {
}
```

此 function 是一個符合規範的 React component,因為它接受一個「props」(指屬性 properties)物件並回傳一個 React element。我們稱之為 function component,因為它本身就是一個 JavaScript functions
此 function 是一個符合規範的 React component,因為它接受一個「props」(指屬性 properties)物件並回傳一個 React element。我們稱之為 function component,因為它本身就是一個 JavaScript function

同樣的,你也可以使用 [ES6 Class](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes) 來定義 component:

Expand Down

0 comments on commit b2c6dfb

Please sign in to comment.