UseEffect uses old value of changed state

后端 未结 0 1750
灰色年华
灰色年华 2021-01-06 18:57
    const [ text , setText ] = useState("");
    useEffect( () => async () => {
        try{
            const response = await axios.post( `http://l         


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