组件属性 传值
class Greeting extends Component{
render(){
return(<Text>你好啊,{this.props.zhibin}</Text>);
}
}
export default class App extends Component<{}> {
render() {
return(
<View>
<Greeting zhibin="测试一下"></Greeting>
</View>
);
}
}
标签:component export ext extends turn default 你好 exp def
组件属性 传值
class Greeting extends Component{
render(){
return(<Text>你好啊,{this.props.zhibin}</Text>);
}
}
export default class App extends Component<{}> {
render() {
return(
<View>
<Greeting zhibin="测试一下"></Greeting>
</View>
);
}
}
标签:component export ext extends turn default 你好 exp def
原文地址:https://www.cnblogs.com/zhibin/p/8351607.html