这是我的实例,我需要获取登录 div 并使用 refs 隐藏它如何实现?
var Text=React.createClass({
componentDidMount:function(){
console.log(this.refs.login.getDOMNode());
},
render:function(){
return (<View ref="login">
<Text>Abc</Text>
<Text>123</Text>
</View>)
}
})`