16 lines
271 B
JavaScript
16 lines
271 B
JavaScript
![]() |
/* @flow */
|
||
|
import React from 'react';
|
||
|
|
||
|
type Props = {name: string};
|
||
|
|
||
|
class Hello extends React.Component<{}, Props, void>{
|
||
|
props: Props;
|
||
|
static defaultProps: {};
|
||
|
|
||
|
render(): React.Element<*> {
|
||
|
return <div>{this.props.name}</div>;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = Hello;
|