Created
October 26, 2018 22:48
-
-
Save andrepcg/6119c8594fd3a3fff1143c6db26bc54f to your computer and use it in GitHub Desktop.
This file contains 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
const Product = React.memo((props) => { | |
const { name, price } = props; | |
return ( | |
<div className="product-info"> | |
<span>{name}</span> | |
<span>{price}</span> | |
</div> | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment