Re-rendering useEffect from child component

后端 未结 0 1740
闹比i
闹比i 2021-02-20 18:46
const CompleteDriverInfo = () => {
  const [DriverInfo, setDriverInfo] = useState([]);
  useEffect(async () => {
    await setDriverInfo(await GetFetch(\'driver\')         


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