react.refObjects code example
Example 1: Cannot find name 'RefObject'
class TestApp extends React.Component {
private stepInput: React.RefObject;
constructor(props) {
super(props);
this.stepInput = React.createRef();
}
render() {
return ;
}
}
Example 2: cre&atRefs react js
const node = this.myRef.current;