import * as React from 'react';
import Button from '@material-ui/core/Button';
import './Hello.scss'

export interface HelloProps {
  compiler: string;
  framework: string;
}

export default class Hello extends React.Component <HelloProps, {}> {
  render() {
    function print() {
      console.log(13)
    }

    return (
      <div>
        <h1>Hello from {this.props.compiler} and {this.props.framework}</h1>
        <div className="name">名字颜色</div>
        <Button variant="contained" color="primary" onClick={print}>
          Hello World
        </Button>
      </div>
    );
  }
}
