0
제출 버튼에서 사용자가 괜찮은지 확인하고 있습니다. 하지만 내 소품 콜백에 액세스 할 수 없습니다.다른 사람이 콜백에서 소품을 읽을 수 없습니다.
Meteor.loginWithPassword({username:username}, password, function(error){
if(!error){
this.props.router.push('/');
}
});
constructor(props) {
super(props)
this.state = {
username: '' ,
password:'',
errors: [],
alertVisible: false
};
내 버튼 :
<Button type='submit' onClick={this.onClickLogIn.bind(this)}>Go</Button>
어떻게해야합니까?