1class Mod extends React.Component {
2
3 constructor(props) {
4 super();
5 this.state = {
6 title : 'Hello world'
7 };
8
9 }
10
11 render() {
12 return(
13 <div>
14 <h1>{this.state.title}</h1>
15 </div>
16 )
17 }
18}
19