How to set an object as a state variable?

后端 未结 0 996
借酒劲吻你
借酒劲吻你 2020-12-08 13:54

I have an object called configs and I am trying to store it in a state var called stateConfig,

  const [stateConfig, setStateConfig] = useState(configs)


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