import { useState } from 'react'; import { setConstantValue } from 'typescript'; const App = () => { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const submit = () => { fetch('/sign_in', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ email, password }), }); }; return ( <>
setEmail(e.target.value)} />
setPassword(e.target.value)} />
); }; export default App;