When wrapping a component in React, does it smell to wrap child handler props to enhance functionality?

后端 未结 0 951
无人共我
无人共我 2021-02-10 07:41

When creating an adapter or higher-order component (HOC), frequently I\'ve wanted to transparently intercept a handler prop. An example might be an onChange logger

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