Typescript reaksi fungsi props coponon
interface Props {
foo: string,
bar: boolean
}
const MyReactComponent: React.FC<Props> = (Props) => {
//Insert logic here
}
//Or
const MyReactComponent: React.FC<Props> = ({foo, bar}) => {
//Insert logic here
}
Daniel Kristoffersen