Passing Props From Root
render() {
return(
<div>
{React.cloneElement(this.props.children, this.props)}
</div>
)
}
}
Last updated
render() {
return(
<div>
{React.cloneElement(this.props.children, this.props)}
</div>
)
}
}
Last updated