score:1

  return axios({
        method: 'post',
        url: 'api/User/Login',
        data: { username, password },
    }).then(response => { ....

score:1

cosnt FormSubmitHandle = async (values)=> {
    setFormSubmitted(true);

    let res = awiat props.login(values.username, values.password);
            console.log('YESSSS');
}

Related Query

More Query from same tag