diff --git a/src/app/components/comment/page.tsx b/src/app/components/comment/page.tsx new file mode 100644 index 0000000..c2f7b11 --- /dev/null +++ b/src/app/components/comment/page.tsx @@ -0,0 +1,47 @@ +"use client"; + +import React, { useState } from "react"; + +export default function CommentPage() { + const [studentComment, setStudentComment] = useState(""); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + console.log("コメント内容:", studentComment); + alert("コメントを送信しました!"); + setStudentComment(""); + }; + + return ( +
+
+ {/* 入力欄 */} +