📜  typed usestate - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:14.296000             🧑  作者: Mango

代码示例2
interface Provider {
  connected: boolean;
  type: string;
}
const [wearablesList, setWearablesList] = useState([]);