skip to Main Content

Javascript – How to use react-select with react-hook-form in typescript

I have a form <Form onSubmit={handleSubmit(applyFilter)}> <FormLabel>Organization</FormLabel> <Controller name="Units" control={control} render={({ field }) => <Select {...field} placeholder={translate("Select organization")} options={filterModel.data?.units.map(unit => { return { label: unit.name, value: unit.id } })} isMulti closeMenuOnSelect={false} /> }/> </Form> But i have an error when…

VIEW QUESTION
Back To Top
Search