Calling props.myFunction() inside a function in react functional component

后端 未结 0 1804
孤城傲影
孤城傲影 2021-01-04 06:34

I am passing a function to a child component in React and it works perfectly when I call it directly in onClick of a button. But then when I move it into a separate function

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