react-native-web
Version:
React Native for Web
22 lines (20 loc) • 461 B
JavaScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*
*/
;
import * as React from 'react';
class StaticRenderer extends React.Component {
shouldComponentUpdate(nextProps) {
return nextProps.shouldUpdate;
}
render() {
return this.props.render();
}
}
export default StaticRenderer;