Commit 49dad3a0 authored by baesangjune's avatar baesangjune
Browse files

.

parent 7fbe9b17
......@@ -18,6 +18,17 @@ function AdminQuiz(props) {
// answer = props.data.A
const [selectOption, setselectOption] = useState(1)
// 만약 업데이트가 되었으면 question이랑 props.data.Q랑 값이 같아야 하는데
// admin페이지 가서 quiz 1에 값들 넣은 다음 콘솔찍어보고 quiz 2에도 값을 넣고 콘솔보면 어떤게 다른지 알 수 있을거야
// 마지막으로 quiz3 눌러보면 확실하게 알 수 있을거고 값이 처음만 업데이트되고 나중에는 업데이트가 안되고있어
console.log(question)
console.log(props.data.Q)
console.log(choose)
console.log(props.data.Choose)
console.log(answer)
console.log(props.data.A)
const handleChangeQuestion = (event) => {
QnAadmin['Q'] = event.target.value
setQuestion(event.target.value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment