How to pass props to {this.props.children}

后端 未结 26 3433
猫巷女王i
猫巷女王i 2020-11-21 23:42

I\'m trying to find the proper way to define some components which could be used in a generic way:


  
  

        
26条回答
  •  礼貌的吻别
    2020-11-22 00:10

    Maybe you can also find useful this feature, though many people have considered this as an anti-pattern it still can be used if you're know what you're doing and design your solution well.

    Function as Child Components

提交回复
热议问题