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

后端 未结 0 1939
不思量自难忘°
不思量自难忘° 2021-02-15 01:25

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:

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