Created
November 8, 2019 17:36
-
-
Save mugan86/ffb1eddb9c59a437b99c43e470e4ffbd to your computer and use it in GitHub Desktop.
Componente React
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'; | |
export const Hello: React.FC<{ name: String }> = ({name}) => { | |
if (!name) { | |
name = 'Mundo'; | |
} | |
return (<h1>¡¡Hola {name}!!</h1>) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment