Why using render-props instead of just passing the component as a prop?

前端 未结 0 1944
深忆病人
深忆病人 2020-12-02 06:34

Just out of curiosity, what is the difference between this:

const Parent = ({Child}) => {
  return 
相关标签:
回答
  • 消灭零回复
提交回复
热议问题