There was an error while loading. Please reload this page.
function login(username: string, password: string) { return axios.post("/api/users/login", undefined, {auth: {username, password}}) .then(response => { setUser(response.data) }) }
Info - Link: https://www.freecodecamp.org/news/clean-coding-for-beginners/
KISS = Keep It Simple and Stupid // Keep It Super Simple
Wichtigste Punkte bei Clean Code: