它讓你不必寫class 就能使用state 以及其他React 的功能。 ... setIsOnline] = useState(null); function handleStatusChange(status) { setIsOnline(status.
確定! 回上一頁