<Input
{...register('maxVisit', {
required: '⚠ This input is required.',
})}
name='maxVisit'
id='maxVisit'
type='number'
placeholder={selectedOffer?.maxVisits}//error here
/>
No overload matches this call. Overload 1 of 2, '(props: InputProps | Readonly): Input', gave the following error. Type 'number | undefined' is not assignable to type 'string | undefined'. Type 'number' is not assignable to type 'string | undefined'. Overload 2 of 2, '(props: InputProps, context: any): Input', gave the following error. Type 'number | undefined' is not assignable to type 'string | undefined'.
react-hook-form
? - Sanket ShahString(selectedOffer?.maxVisits)
- Rashomon