Execute code on parent component based on parent component's state changed in child component

前端 未结 0 1392
抹茶落季
抹茶落季 2021-02-18 20:35

I am learning reactjs and making a quiz app. I want to execute a piece of code in parent component using useEffect. the dependency of this useEffect function is based on a state

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