import React, { useState } from 'react'; // import { Link } from 'react-router-dom'; function Admin() { const [question, setQuestion] = useState('') const [choose, setChoose] = useState('') const [answer, setAnswer] = useState('') const [selectOption, setselectOption ] = useState('') // const [done, setDone] = useState(false) const handleChangeQuestion = (event) => { setQuestion(event.target.value) } const handleChangechoose = (event) => { setChoose(event.target.value) } const handleChangeanswer = (event) => { setAnswer(event.target.value) } function handleClick() { // localStorage.setItem('N', number) localStorage.setItem('Q', question) localStorage.setItem('Choose', choose) localStorage.setItem('Answer', answer) // setDone(true) alert('입력이 완료되었습니다') } function addSelectOption() { let list = function(){ return