ReactJS state does not change

后端 未结 0 849
天涯浪人
天涯浪人 2020-12-24 06:43
  const fakeFetch = (delay = 400) =>
  new Promise((res) => setTimeout(res, delay));

const fetchItems = async () => {
  try {
    setParams((state) => s         


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