react-bucket
React全家桶
这个项目短期的计划是给中文用户用的,方便身边的朋友。长期未考虑。
Install
Browser/Production
<!-- no react.js, no react-dom.js, no babel-polyfill -->
Document
Component
Component | 描述 | props |
---|---|---|
View |
视图 | [] |
Text |
文字 | [] |
ReactRouter.Link |
链接 | [to] |
ReactRouter.Switch |
组件切换 | [] |
### API
API | 描述 | 注意 |
---|---|---|
React |
||
ReactRouter |
||
StyleSheet |
||
css |
||
AppRegistry |
StyleSheet.create(styleMap: Object) styles: object
StyleSheet.assign(styleList | styleMap) prefixedStyle: object
StyleSheet.flatten(nestedStyleList: Array): styleList: Array
Example:
const styles = StyleSheet ReactDOM
// import { View } from 'react-bucket/Components'
{ return <PromiseView promise=a_promise render= { return <View>status: status</View> } /> }
API
AppRegistry
const App = { return <View >hello world!</View> } AppRegistry
Utils
Utils.flatten