I have one React Component in which I am using useState hook.
I tried to set value to general onClick of menu item.
const [value,setValue]= useState("");
<Menu.Item onClick={()=>setValue("general"))>
</Menu.Item>
In another file I am passing that value.
<ChannelForm
value={value}
/>
I am using TypeScript. Have declared prop type definition as
value?: "general" | "competitive" | "social" | "podcast";
But while passing value as a props I am getting above error.