Created
February 13, 2025 07:19
-
-
Save balvinder294/bde53d281118992efe6d2bcb4a9c9a73 to your computer and use it in GitHub Desktop.
Reactjs useMemo Example https://tekraze.com/understanding-states-and-props-in-reactjs-component/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const MyMemoComponent = React.memo(function MyComponent(props) { | |
return ( | |
<div> | |
<p>Value: {props.value}</p> | |
</div> | |
); | |
}); | |
export default MyMemoComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment