Just wondering if I can do this without declaring a separate const:
const MyComponent: React.SFC<props> = () => {};
export default MyComponent
I want something like:
export default (MyComponent: React.SFC<props>) = () => {};
but I can't figure out the syntax
It is:
export default (() => {
...
}) as React.SFC<props>;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With