Created
August 2, 2019 17:22
-
-
Save smeijer/43a4f9fa2c526c5049114c7b651f5e9c to your computer and use it in GitHub Desktop.
medium-costs-of-optional-chaining-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentDidUpdate(prevProps) { | |
if ( | |
this.props.image?.type !== prevProps.image?.type || | |
this.props.image?.orientation !== prevProps.image?.orientation | |
) { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment