How do I update an object's state keeping the existing elements using useState hook?

后端 未结 0 1993
天命终不由人
天命终不由人 2020-11-28 02:22

I have an array of objects:

// seedColors.js

export default [
  {
    paletteName: "Material UI Colors",
    colors: [
      { name: "red"         


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