mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
10 lines
239 B
JavaScript
10 lines
239 B
JavaScript
// Before
|
|
class ExampleComponent extends React.Component {
|
|
// highlight-range{1-5}
|
|
componentWillReceiveProps(nextProps) {
|
|
if (this.props.isVisible !== nextProps.isVisible) {
|
|
logVisibleChange(nextProps.isVisible);
|
|
}
|
|
}
|
|
}
|