import React, { useState } from 'react'; let list = [] function AdminQuiz() { const [question, setQuestion] = useState('') const [choose, setChoose] = useState('') const [answer, setAnswer] = useState('') const [selectOption, setselectOption] = useState(1) const handleChangeQuestion = (event) => { setQuestion(event.target.value) } const handleChangeChoose = (event) => { setChoose(event.target.value) } const handleChangeanswer = (event) => { setAnswer(event.target.value) } function addSelectOption() { list.push(
) setselectOption(selectOption + 1) } function handleClick() { alert('입력이 완료되었습니다') // localStorage.setItem('Q', question) // localStorage.setItem('Choose', choose) // localStorage.setItem('Answer', answer) // localStorage.setItem('P', password) // localStorage.setItem('AP', adminpassword) // localStorage.setItem('T', time * 1000) } // function handleChangeQuestion(){} return (

문제만들기

1.
{list.map((element) => element)}
정답:
) } export default AdminQuiz