next.js中报如此错误,是input给了默认值,初次渲染时默认值为undefined
解决办法是
<input type="text" onChange={onKeyword} value={keyword?keyword:''}/>
next.js中报如此错误,是input给了默认值,初次渲染时默认值为undefined
解决办法是
<input type="text" onChange={onKeyword} value={keyword?keyword:''}/>