Open Rushi-Kumar opened 7 years ago
for the above problem please help me I am not even performing those actions really but i dont why the login comoponent is reloading is it problem with routing or with component its self
the url is first like this " http://localhost:7890/html/index.html#/login " then after clicking the button even though no click event is provided to the button the url is changing as follows " http://localhost:7890/html/index.html?+username=USERNAME#/login " USERNAMEis what we type in the input textbox named username at first both password and username is passing as parameters and i dont know what i did , now only username is going and the scren means the components is loaded again please help me with this
class Login extends React.Component { constructor(props) { super(props); this.state = { LoggedIn:false, userName:'', password:'', emailId:'', active:'' } }
componentWillMount() { console.log(this.state); } componentDidMount() {
}
render() {
}
}
export default Login;