Usage on ref on Header.jsx file throw an exception. (Element ref was specified as a string (input) but no owner was set.)
usage of ref be like below
on line 85
- ref="input"
+ ref={ref => {this.refInput = ref}}
on line 49
- this.refs.input.focus();
- this.refs.input.select();
+ this.refInput.focus();
+ this.refInput.select();
Usage on ref on Header.jsx file throw an exception. (Element ref was specified as a string (input) but no owner was set.)
usage of ref be like below
on line 85
- ref="input"
+ ref={ref => {this.refInput = ref}}
on line 49
- this.refs.input.focus();
- this.refs.input.select();
+ this.refInput.focus();
+ this.refInput.select();