摘要:
【Typechecking With PropTypes】 1、props类型检查 React has some built-in typechecking abilities. To run typechecking on the props for a component, you can as 阅读全文
posted @ 2017-03-23 19:33
Tekkaman
阅读(235)
评论(0)
推荐(0)
摘要:
【JXS In Depth】 1、Spread Attributes If you already have props as an object, and you want to pass it in JSX, you can use ... as a "spread" operator to p 阅读全文
posted @ 2017-03-23 19:21
Tekkaman
阅读(203)
评论(0)
推荐(0)
摘要:
【Choosing the Type at Runtime】 You cannot use a general expression as the React element type. If you do want to use a general expression to indicate t 阅读全文
posted @ 2017-03-23 17:32
Tekkaman
阅读(199)
评论(0)
推荐(0)
摘要:
【User-Defined Components Must Be Capitalized】 When an element type starts with a lowercase letter, it refers to a built-in component like<div> or <spa 阅读全文
posted @ 2017-03-23 17:26
Tekkaman
阅读(198)
评论(0)
推荐(0)
摘要:
【Computed property names】 That allows you to put an expression in brackets [], that will be computed as the property name. 参考:https://developer.mozill 阅读全文
posted @ 2017-03-23 11:03
Tekkaman
阅读(200)
评论(0)
推荐(0)
浙公网安备 33010602011771号