We can set the type of generic after the component name. Example:
jsx
function Form() {
// ...
return (
<Select<string>
={targets}
options={target}
value={setTarget}
onChange/>
);
}
See: Passing Generics to JSX Elements in TypeScript — Marius Schulz