Diff View
@@ -1,8 +1,12 @@
+const LoginForm = () => {
+ const [email, setEmail] = useState('');
+ const [password, setPassword] = useState('');
+
return (
<form className="login-form">
- <input type="email" placeholder="Email" />
- <input type="password" placeholder="Password" />
+ <input type="email" value={email} onChange={(e) => setEmail(e.target.value)} placeholder="Email" />
+ <input type="password" value={password} onChange={(e) => setPassword(e.target.value)} placeholder="Password" />
<button type="submit">Login</button>
</form>
);