import React, { Component } from "react";
import "./App.css";
interface myProps {
  a: number;
}

interface myState {
  c: number;
}

class App extends Component<myProps, myState> {
  handleClick = () => {
    this.setState({
      c: 1000,
    });
  };

  render() {
    return <div onClick={this.handleClick}>{this.props.a}</div>;
  }
}

export default App;
