Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Example for how to call super constructor on class derived from TypeReact.Component #57

@joekim

Description

@joekim

I want to add some code into the constructor of a class that derives from TypedReact.Component, but I'm not clear on how to call the super constructor.

     type SignUpForAlphaProps = {
        title: string;
        email: string;
    };

    class SignUpForAlphaBox extends TypedReact.Component<SignUpForAlphaProps, {}> {

        constructor(props: SignUpForAlphaProps, context: any) {
            super(props, context);

Error: Supplied parameters do not match any signature of call target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions