I have created a login form where i accept the user email and password.
I want to make api call to api server to validate the credentials against database how can i make a ajax request . I have heard of Redux can that be used for making ajax request.
class LoginComponent extends React.Component{
constructor(){
super()
}
handleEmailChange(e){
//... email validation stuff
}
handlePasswordChange(e){
//...
}
handleSubmit(e){
//..login logic goes here
}
}