set hook with temporary object

前端 未结 0 602
青春惊慌失措
青春惊慌失措 2021-01-23 17:32

i expect the hook to be updated(and i want every time to keep only one object i dont want to save previous value) my hooks:

  const [rooms, setrooms] = useState([         


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