使用typescript并希望使用样式化组件为MaterialUI组件设置样式。但是显示Type '{ children: string; }' is missing the following properties的StyledComponent会出现类型错误import styled from 'styled-c
我正在使用TypeScript(v4.2.3)和Material (v4.11.3),并试图将自定义道具传递给styled组件。import React from 'react'; IconButton,} from '@material-ui/core';
const NavListButton如何摆脱这种不使用样式-组件模块,需要使用styled的材料UI</em