DEV Community

Muhammad Masudur Rahman
Muhammad Masudur Rahman

Posted on

How to resolve react-select TypeScript error?

import React, { useState } from 'react'
import { Theme } from '@/styles';
import Select, { components, DropdownIndicatorProps, PropsValue } from 'react-select';
import { TbCaretUpDownFilled } from 'react-icons/tb';

const DropdownIndicator = (props: DropdownIndicatorProps<true>) => (
  <components.DropdownIndicator {...props}>
    <TbCaretUpDownFilled />
  </components.DropdownIndicator>
);

type OptionType = {
  value: string;
  label: string;
};

Top comments (0)