SyntaxFix
Write A Post
Hire A Developer
Questions
You can use componentWillReceiveProps.
constructor(props) { super(props); this.state = { productdatail: '' }; } componentWillReceiveProps(nextProps){ this.setState({ productdatail: nextProps.productdetailProps }) }