How to join custom prop to existing prop within React.Children.forEach loop

前端 未结 0 465
南笙
南笙 2021-01-20 12:11

I am trying to pass custom prop within React.Children.forEach loop.

React.Children.forEach(children, (child) => {

let componentName;
let newVar;
if (child         


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