Skip to content

Instantly share code, notes, and snippets.

View LeroViten's full-sized avatar
🏠
Working from home

Valerii Vitenko LeroViten

🏠
Working from home
View GitHub Profile
@LeroViten
LeroViten / LoginComponent.js
Last active October 13, 2022 20:48
RTK-query-auth-attempt
async function handleSubmit(e) {
const email = e.currentTarget.email.value;
const password = e.currentTarget.password.value;
e.preventDefault();
const loginData = {
email,
password,
};