1class TestApp extends React.Component<AppProps, AppState> {
2 private stepInput: React.RefObject<HTMLInputElement>;
3 constructor(props) {
4 super(props);
5 this.stepInput = React.createRef();
6 }
7 render() {
8 return <input type="text" ref={this.stepInput} />;
9 }
10}
11