React - set property of object by setState

前端 未结 0 1931
北恋
北恋 2020-12-29 19:48

So i have object

const [rates, setRates] = useState([
    { key: \'rate0\', value: 0 },
    { key: \'rate1\', value: 0 },
]);

I can log it li

相关标签:
回答
  • 消灭零回复
提交回复
热议问题