Skip to content

Instantly share code, notes, and snippets.

@mugan86
Created November 8, 2019 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mugan86/ffb1eddb9c59a437b99c43e470e4ffbd to your computer and use it in GitHub Desktop.
Save mugan86/ffb1eddb9c59a437b99c43e470e4ffbd to your computer and use it in GitHub Desktop.
Componente React
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