How would I go about this in typescript. I know I can do it with giving it a name but thats not what I'm asking. I'm asking how can I still just use default.
interface IProps {
name: string,
tag: string,
}
export default ({name, tag}: IProps) => {
..... my code
});
Yes I know about this.
const MyComponent: React.FunctionComponent = () => {
...
export default MyComponent;