Compiler says
const Form = (
submit: (email: string, password: string) => void, message:string)
{
return (//omit//)
}
const submitC = (
userName: string,
password: string
) => {
props.submitC( email, pass);
};
<Form
submit={submitC}
message={""}
/>
Compiler says
is not assignable to type 'IntrinsicAttributes & ((email: string, password: string) => void)'. Property submit does not exist on type 'IntrinsicAttributes & ((email: string, password: string) => void) => void)'.ts(2322)
[x:string]:any
– Singhi John