Renders static content efficiently by allowing React to short-circuit the reconciliation process.
npm install react-static-containerRenders static content efficiently by allowing React to short-circuit the
reconciliation process. This component should be used when you know that a
subtree of components will never need to be updated.
Typically, you will not need to use this component and should opt for normal
React reconciliation.
``sh`
npm install react-static-container
`js
var StaticContainer = require('react-static-container');
var someValue = ...; // We know for certain this value will never change.
class MyComponent extends React.Component {
render() {
return (
StaticContainer also takes a shouldUpdate` prop as an escape hatch, allowing granular updates.