What's the correct way to use the render prop for the RAC DatePicker? #4516
Answered
by
reidbarber
brandonpittman
asked this question in
Q&A
-
I'm trying to use the render prop on the DatePicker, but I keep getting this error:
I assumed this would work: export function Datepicker<T extends DateValue>({
className,
...props
}: MyDatePickerProps<T>) {
return (
<DatePicker {...props} className={datepickerStyle}>
{(values) => <div>{/* other elements /*}</div>}
</DatePicker>
);
} But it's not working. Am I using it incorrectly? |
Beta Was this translation helpful? Give feedback.
Answered by
reidbarber
May 12, 2023
Replies: 1 comment 2 replies
-
Looks like we may have missed properly implementing it in the DatePicker component. Would you mind creating a new issue, or converting this? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
brandonpittman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like we may have missed properly implementing it in the DatePicker component. Would you mind creating a new issue, or converting this?