Last active
July 20, 2020 04:21
-
-
Save xnt/469c4158d5dc05f98600ae469f303664 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'; | |
interface HolaProps { | |
firstName: string; | |
lastName: string; | |
} | |
const Hola: React.FC<HolaProps> = ({firstName, lastName}) => ( | |
<div> | |
<p> | |
Hola, {firstName} {lastName}! | |
</p> | |
</div> | |
); | |
export default React.memo(Hola); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment