import { Component } from 'inferno'; import './About.css'; interface IState { clickCount: number; } interface IProps {} export default class About extends Component { constructor(props) { super(props); this.state = { clickCount: 0, }; this.increment = this.increment.bind(this); } protected increment() { this.setState({ clickCount: this.state.clickCount + 1, }); } public render() { return (
Simple Inferno SSR template

Hello, world!

{this.state.clickCount}

); } }