import React, { useState } from "react"; import Theme from "./theme"; import { PostType } from "./typesrc"; import axios from "axios"; function Title() { const [title, setTitle] = useState("질문종류"); function TitleChange(e: { target: { value: React.SetStateAction } }) { setTitle(e.target.value); } } function Body() { const [body, setBody] = useState("질문종류"); function BodyChange(e: { target: { value: React.SetStateAction } }) { setBody(e.target.value); } } function SelectCity() { const [selectCity, setSelectCity] = useState("질문종류"); function CityChange(e: { target: { value: React.SetStateAction } }) { setSelectCity(e.target.value); } return ( ); } function SelectTheme() { const [selectTheme, setSelectTheme] = useState("질문종류"); function ThemeChange(e: { target: { value: React.SetStateAction } }) { setSelectTheme(e.target.value); } return ( ); } // 눌렀다는 데이터가 어딘가에 있어야 한다. Map 객체를 이용해서 기타등등 // function postup() { // axios.post("localhost:3000/api/post/up", { // id: "a", // title: title, // body: body, // date: `${() => new Date()}`, // theme: selectTheme, // city: selectCity, // }); // } export default function Posting() { return (

Id

empty

); }