update props after creating object using new + react js code example Example: component did mmount componentDidMount()