Input elements should not switch from uncontrolled to controlled (or vice versa)我的代码:componentDidMount(element, props);//Input.js
//the error comes after typeChecking in Form.js I just didn't want
我有一个html页面,它需要在按下按钮时获取输入的值,这样它就可以作为链接中的变量使用。例如,我的网站会检测到输入中的"word“,并在单击按钮时重定向到"google.com/word”链接。HTML代码:
<td><input value="Input text Here..."></input></t