Note that because we passed the initial value false to useState, TypeScript was able to infer that the piece of state is a boolean; if we'd instead used a ...
確定! 回上一頁