Created
November 21, 2018 22:26
-
-
Save kiramishima/9b409819c7b009955a88759641e83b66 to your computer and use it in GitHub Desktop.
Componente HolaMundo
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 * as React from 'react'; // Importamos React | |
export interface HolaProps { compiler: string; framework: string; } | |
// 'HolaProps' describe las props del componente. | |
// State nunca se establece por lo que usamos '{}'. | |
export class HolaMundo extends React.Component<HolaProps, {}> { | |
render() { | |
return <h1>Hola desde {this.props.compiler} y {this.props.framework}!</h1>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment