Is using both extension and composition a good practice in React Class Components?

后端 未结 0 469
攒了一身酷
攒了一身酷 2021-02-15 01:39

I will best explain what I am trying to say with an example: I want to create a hoverable component which can be reused. If I use only extension the code will look like this:

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