码迷,mamicode.com
首页 > 其他好文 > 详细

react-创建组件

时间:2017-12-08 17:04:21      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:样式   role   putc   react   styles   input   default   exp   ack   

//定义组件
class InputControlES6 extends React.Component{
render (){
return (<View style="{sty.container}"></View>);
}
};
//定义样式
var sty=StyleSheet.create({
container:{
backgroundColor:"yellow",
width:300,
height:200,
}
});
export default InputControlES6; //

react-创建组件

标签:样式   role   putc   react   styles   input   default   exp   ack   

原文地址:http://www.cnblogs.com/iOS-mt/p/8005124.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!