iterate through all component childrens (including render function) and change props

前端 未结 0 1166
深忆病人
深忆病人 2021-01-26 03:26

I\'m trying to inject props to some of my childrens components, those childrens can be at any level, so i need to iterate recursively through all my childrens subtree with React

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