React - JS move property inside an array as a main property

后端 未结 0 1878
[愿得一人]
[愿得一人] 2021-01-16 22:15

I have this array of data and I want to move y property as one of the main property

const [data,setData] = useState[{
  id: 1,
  color: \'#75         


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