const [stack, setStack] = useState([]). const push = (name) => {. console.log(`pushing ${name}`). stack.push(name). console.log(stack).
確定! 回上一頁