Pass props from parent to children in react js

后端 未结 0 1520
自闭症患者
自闭症患者 2020-12-31 14:52

I have 2 components. The component A is the parent component:

const A = ({children}) => {

  const childrenWithProps = React.Children.map(
    children,
           


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