score:1

Accepted answer
const Button: React.FC = ({ text, ...props }) => {
  return <button {...props}>{text}</button>
}

Related Query

More Query from same tag