shouldcomponentupdate in react hooks code example
Example: shouldcomponentupdate hooks
React.memo(function MyComponent (props) {
return <div>{ "My Component " + props.value }</div>;
})
React.memo(function MyComponent (props) {
return <div>{ "My Component " + props.value }</div>;
})