📜  反应继承 html 输入道具 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:23.490000             🧑  作者: Mango

代码示例1
import React from 'react';

interface ButtonProps extends React.ButtonHTMLAttributes {
  title: string;
  showIcon: boolean;
}

const Button: React.FC = ({ title, showIcon, ...props }) => {
  return (
    
  );
};