Skip to content

Instantly share code, notes, and snippets.

@kiramishima
Created November 21, 2018 22:26
Show Gist options
  • Save kiramishima/9b409819c7b009955a88759641e83b66 to your computer and use it in GitHub Desktop.
Save kiramishima/9b409819c7b009955a88759641e83b66 to your computer and use it in GitHub Desktop.
Componente HolaMundo
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