#DatePickerInput wrapper error
14 messages · Page 1 of 1 (latest)
DatePickerInputProps is a generic, to learn how to extend it view the source code
@last canopy Good. I added generic to my props interface. But what next? I dont undeestand how to add generic to createPolymorphicComponent function.
Error still exists.
- There is no reason to make DatePickerInput polymorphic component
- createPolymorphicComponent does not support generic props types.
- But it's possible?
Changed component to non polymorphic variant - same error. Created wrapper according on example on website
Your component is not generic, components created with forwardRef cannot accept type arguments.
So. I need create own component without forwardRef?
Maybe you can provide example?
https://stackoverflow.com/a/58473012/4444092
2 or 3 variants can help me? Link with DatePickerInputComponent I don't understand.
Is it Correct?
Got error with defaultProps.
@last canopy so?