DEV Community

Discussion on: Typescript. Simple React components.

Collapse
kristemmerman profile image
Kris Temmerman

Nice article! you've made a small typo

export const Button: React.FunctionComonent<IProps> = ({ block, ...shared }) => {
  return <button {...shared}>{children}</button>;
}

should be Component or .FC

Collapse
pretaporter profile image
Maksim Author

React.FC and React.FunctionComponent is the same

Collapse
kristemmerman profile image
Kris Temmerman • Edited on

Yeah I know but look closely.
thepracticaldev.s3.amazonaws.com/i...

Thread Thread
pretaporter profile image
Maksim Author

Oh, sorry! Thanks)