import React, { useState } from 'react'; import AdminQuiz from './AdminQuiz'; import AdminSetting from './AdminSetting' // import { Link } from 'react-router-dom'; let QuizBtn = [] function Admin() { // let QnAadmin = [] // let Q = [] // let choose = [] // let N = [] const [result, setresult] = useState('') // const [addQuiz, setaddQuiz] = useState('') const [QuizBtnCount, setQuizBtnCount] = useState(4) function handleClickSetting() { setresult() } function handleClickQuiz() { setresult() } function handleClickAddQuiz() { QuizBtn.push( ) setQuizBtnCount(QuizBtnCount + 1) } return ( <>

관리자페이지

{QuizBtn.map((element) => element)}
{result}
) } export default Admin