useEffect does not work when a specific property is changed

前端 未结 0 730
孤街浪徒
孤街浪徒 2020-12-19 08:33

I have the following code in ReactJS:

const { state, dispatch } = useContext(LabelerContext);

    useEffect(()=>{
        console.log("RUNNING USEEFF         


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