component will update vs should component update code example Example: component did mmount componentDidUpdate(prevProps, prevState, snapshot)