drago.cc

Passing props to native elements in React and TypeScript

export const Button = (props: JSX.IntrinsicElements['button']) => { return <button type="button" {...props} />; };

Published: July 31, 2021 at 8:00 PM