is it ok to define a function inside a React stateless component?

前端 未结 0 1554
慢半拍i
慢半拍i 2020-12-14 14:52

Is it bad practice to define a function (like handleClick in the example below) inside a stateless component? I was told that you should avoid doing so, but I c

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