Created
July 20, 2020 04:18
-
-
Save xnt/0ebc339a3ab89baa251de5e01a7475e1 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
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
const Hola = ({firstName, lastName}) => ( | |
<div> | |
<p> | |
Hola, {firstName} {lastName}! | |
</p> | |
</div> | |
); | |
Hola.propTypes = { | |
firstName: PropTypes.string.isRequired, | |
lastName: PropTypes.string.isRequired, | |
}; | |
export default React.memo(Hola); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment