mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
20 lines
294 B
TypeScript
20 lines
294 B
TypeScript
|
|
import * as React from "react";
|
||
|
|
|
||
|
|
interface IProps {
|
||
|
|
name: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
class Hello extends React.Component<IProps> {
|
||
|
|
render () {
|
||
|
|
const {name} = this.props;
|
||
|
|
|
||
|
|
return (
|
||
|
|
<React.Fragment>
|
||
|
|
<span>Hello {name}!</span>
|
||
|
|
</React.Fragment>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default Hello;
|