Skip to content

Update template to have Props and State reflect Component name #16

@PaulInglis

Description

@PaulInglis

I was wondering whether you would be able to include a feature which sets the

export interface Props {
}

export interface State {
}

generated parts of the template to reflect the component name, so it is easier to avoid naming conflicts.

I would expect a component of FilterBox to have:

export interface FilterBoxProps {
}

export interface FilterBoxState {
}

This could be a setting that could be toggled to prefix component name on state and props

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions