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
Open
Description
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
Labels
No labels