Set state if the array exists

后端 未结 0 1128
梦谈多话
梦谈多话 2020-11-30 01:12

I need to simply set a state if the data from the server exists.

const [names, setNames] = useState([...details?.names])

The details object i

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