In this example, why does Foo type error, but Bar does not? I know we don't need React.FC, I'm more interested in why this happens?
type ExampleProps = { record?: Object }
// type error
const Foo: FC<ExampleProps> = ({ record }) => {
return <></>;
};
// okay
const Bar: FC<ExampleProps> = ({ record }: ExampleProps) => {
return <></>;
};