Skip to content

React template should create a typed React Functional Component #4677

@virus2016

Description

@virus2016

Hi there,

We are having a productivity hit when creating components because of the template that is in the React create component:

export function <%= className %>(props: <%= className %>Props) {

We would love to use ng generate component and for it to create the following:

interface I*NAME*Props {}

export const *NAME*: React.FC<I*NAME*Props> = (props) => {

...

}

Would this be accepted if a PR was made?

Cheers,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions