摘要:点击2个按钮,更新一个state对象,互不影响 代码: import React, { useState } from 'react'; export default () => { const [state, setState] = useState({ count: 0, count2: 0, 阅读全文
posted @ 2020-12-08 16:08 herry菌 阅读(112) 评论(0) 推荐(0) 编辑