ITeye博客

2016 年文章归档

共 1 篇文章

Hello World React

第一次学习React 笔记: 基础jsx和style,components lifecycle var Hello = React.createClass({ getInitialState:function(){ alert('init'); return { opacity : 1.0, fontSize : '22px' }; }, render:function(){ return <div style={{opacity : this.state.opacity, fontSize:this.state.fontSize}}>Hello {this.props.name} {thi…

2016-11-14 13:51 · android应用开发