import { Component , render , version } from 'inferno' ; import { Incrementer } from './components/Incrementer' ; import './main.css' ; const container = document . getElementById ( 'app' ) ; class MyComponent extends Component < any , any > { private readonly tsxVersion : number ; constructor ( props , context ) { super ( props , context ) ; this . tsxVersion = 3.21 ; } public render ( ) { return ( < div > < h1 > { `Welcome to Inferno ${ version } TSX ${ this . tsxVersion }` } < /h1> < Incrementer name = { 'Crazy button' } / > < /div>); } } render ( < MyComponent />, container);