import * as React from 'react'
import { hot } from 'react-hot-loader'

export interface ITsAppProps {
  msg: string
}

class TsApp extends React.Component<ITsAppProps, {}> {
  public render() {
    return (
      <div>
        <p>TS also supports HMR! ./src/javascripts/TsApp.tsx</p>
        <p className="app-title">{this.props.msg}</p>
      </div>
    )
  }
}

export default hot(module)(TsApp)
