react-conditionally-update
A high order function to decorate a react component to conditionally update the rendered component based on the rendered result.
Demo
npm i && npm start
Example:
;; { superprops; thisstate = width: 200 height: 100 backgroundColor: 'red' ; } // method required to check the condition and update the component with setState { if thisstateheight === 100 this; } { return <div style=thisstate></div> ; } DemoComponent;