-import { Component } from "inferno";\r
-import "./About.css";\r
-interface IState {\r
- clickCount: number;\r
-}\r
-interface IProps {}\r
-export default class About extends Component<IProps, IState> {\r
- constructor(props) {\r
- super(props);\r
- this.state = {\r
- clickCount: 0\r
- };\r
- this.increment = this.increment.bind(this);\r
- }\r
- protected increment() {\r
- this.setState({\r
- clickCount: this.state.clickCount + 1\r
- });\r
- }\r
- public render() {\r
- return (\r
- <div>\r
- Simple Inferno SSR template\r
- <p className="text">Hello, world!</p>\r
- <button onClick={this.increment} className="button">\r
- Increment\r
- </button>\r
- <p className="count">{this.state.clickCount}</p>\r
- </div>\r
- );\r
- }\r
-}\r
+import { Component } from 'inferno';
+import './About.css';
+interface IState {
+ clickCount: number;
+}
+interface IProps {}
+export default class About extends Component<IProps, IState> {
+ 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 (
+ <div>
+ Simple Inferno SSR template
+ <p className="text">Hello, world!</p>
+ <button onClick={this.increment} className="button">
+ Increment
+ </button>
+ <p className="count">{this.state.clickCount}</p>
+ </div>
+ );
+ }
+}