-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Description
Hi guys :),
I'm checking this project and I've found this small issue when I declare a StatelessComponent
using this notation
import * as React from 'react';
interface IButton {
/** prop1 */
prop1: string;
}
const Button: React.SFC<IButton> = props => (
<button>{props.prop1 || "1"}</button>
);
export default Button;
I see this output,
But If I write the component using this notation, I get the right component name
export const Button: React.SFC<IButton> = props => (
<button>{props.prop1 || "1"}</button>
);
Is there a way to indicate the component name when I use the React.SFC<>
interface?.
Thanks in advance
Metadata
Metadata
Assignees
Labels
No labels