import {useState} from "react"; export const LoginScreen = ()=>{ const [username, setUsername] = useState('') const [password, setPassword] = useState('') const login = ()=>{ fetch('/api/auth', { method: 'GET', headers:{ Authorization: `Basic ${btoa(`${username}:${password}`)}` } }).then(r=>{ console.log(r.status) }).catch(e=>{ console.error(e) }) } return

Login Etherpad

Username
setUsername(v.target.value)} placeholder="Username"/>
Passwort
setPassword(v.target.value)} placeholder="Password"/>
}