摘要: 1.useState (1)useState可以在react中进行简单的状态管理。 import React, { useState } from "react"; function Counter() { // 进行状态初始化 const [count, setCount] = useState( 阅读全文
posted @ 2021-09-23 15:35 ellenxx 阅读(457) 评论(0) 推荐(0) 编辑