import * as React from "react"; import './hello.less'; import logo from '../assets/images/1.png'; import foxLogo from '../assets/images/fox.jpg'; console.log('==========='); interface HelloProps { compiler: string; framework: string } // 'HelloProps' describes the shape of props. // State is never set so we use the '{}' type. class Hello extends React.Component { constructor(props: HelloProps) { super(props); this.dosome(); } render() { return (
Hello from {this.props.compiler} and {this.props.framework}!
); } dosome() { } } export { HelloProps, Hello };