最佳答案
如何添加类型验证?具有错误“ element‘ children’隐式具有‘ any’类型”。
import * as React from 'react';
import Button from './Styles';
const Button1 = ({ children, ...props }) => (
<Button {...props}>{children}</Button>
);
Button1.propTypes = {};
export default Button1;