-
-
-
- Get started by editing{" "}
-
- src/app/page.tsx -- . -
- - - Save and see your changes instantly. - -
diff --git a/src/app/app.tsx b/src/app/app.tsx
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/components/LoginForm.tsx b/src/app/components/LoginForm.tsx
index 7f09e63..84ef469 100644
--- a/src/app/components/LoginForm.tsx
+++ b/src/app/components/LoginForm.tsx
@@ -6,9 +6,20 @@ import { useState } from "react";
const LoginForm = () => {
const [id, setId] = useState('') //ID
const [pw, setPw] = useState('') //PW
- const [param, setParam] = useState()
+ const [params, setParams] = useState({
+ id:'',
+ pw:''
+ })
- const login =
+ const login = () => {
+ setParams({id, pw})
+ axios.post('http://localhost:8080/login/oauth-kakao', params).then((res) => {
+ console.log(res)
+ console.log(res.status)
+ }).catch((e) => {
+ console.log(e)
+ })
+ }
return (
<>
diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx
index 7b65137..de589d7 100644
--- a/src/app/login/page.tsx
+++ b/src/app/login/page.tsx
@@ -1,2 +1,5 @@
'use client';
+import LoginForm from "../components/LoginForm";
+
+
- src/app/page.tsx
-
- .
-