Pass onClick functions as parameters through a lot of components

前端 未结 0 1186
生来不讨喜
生来不讨喜 2021-01-12 02:44

I have the following question. Suppouse that I have the following code:

function Page(){

  const onClick = () => {
    // Do some code
  }

  return (
            


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