我在nextJ中选择材料UI有问题
我正在使用NEXT JS的材料UI选择 在页面上,我有一些错误我无法解决
此部分代码
import Select from "@material-ui/core/Select";
import MenuItem from "@material-ui/core/MenuItem";
<Select defaultValue="1" variant="standard" value={sampleref.current} ref={sampleref} onChange={handleChange}>
<MenuItem value="1" className="1" >1</MenuItem>
<MenuItem value="2" className="2">2</MenuItem>
</Select>
I'm using material UI select with next js
and on the page, I have some errors i can't fix that
this section code
import Select from "@material-ui/core/Select";
import MenuItem from "@material-ui/core/MenuItem";
<Select defaultValue="1" variant="standard" value={sampleref.current} ref={sampleref} onChange={handleChange}>
<MenuItem value="1" className="1" >1</MenuItem>
<MenuItem value="2" className="2">2</MenuItem>
</Select>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
Next.config.js
中禁用严格模式:Disable Strict mode in
next.config.js
: