Files
ocr-nextjs/src/app/components/LoginForm.tsx
2025-07-16 12:54:37 +09:00

30 lines
684 B
TypeScript

'use client';
import axios from "axios";
import { useState } from "react";
const LoginForm = () => {
const [id, setId] = useState('') //ID
const [pw, setPw] = useState('') //PW
const [param, setParam] = useState()
const login =
return (
<>
<input type="text"
placeholder="ID"
value={id}
onChange={(e) => {setId(e.target.value)}}/>
<input type="password"
placeholder="PW"
value={pw}
onChange={(e) => {setPw(e.target.value)}}/>
<button type="button" onClick={login}></button>
</>
)
}
export default LoginForm;