react inherit html input props

The solution for “react inherit html input props” can be found here. The following code will assist you in solving the problem.

import React from ‘react’;

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

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

);
};

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in