-
-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When writing code in React, I often need to transfer props to the parent component. However, I sometimes forget which props need to be omitted when passing them to the parent component.
Expected behavior
I expect to have a clear and convenient way of determining which props should be omitted when passing them to the parent component.
LanguagePicker.tsx
type languagePickerProps = {
pickerProps?: DropDownPickerProps<Object>;
// Omit<
// DropDownPickerProps<Object>,
// "multiple" | "setValue" | "value" | "items" | "open" | "setOpen"
// >;
};
export const LanguagePicker = (props: languagePickerProps) => {
Footer.tsx
<LanguagePicker
pickerProps={{
style: {
backgroundColor: "red",
},
}}
/>
It needs to be written in code format:
Please provide more context or additional information if necessary to help identify and resolve the issue.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working