mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 20:01:57 +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);
|
|
}
|
|
}
|
|
}
|