react select multi select code example

Example 1: react select options

import React, { Component } from 'react'
import Select from 'react-select'

const options = [
  { value: 'chocolate', label: 'Chocolate' },
  { value: 'strawberry', label: 'Strawberry' },
  { value: 'vanilla', label: 'Vanilla' }
]

const MyComponent = () => (
  <Select options={options} />
)

Example 2: react select options

yarn add react-select

Example 3: react multiple select dropdown

// lightweigt multiple select pure react component
npm i react-multiple-select-dropdown-lite

Tags:

Html Example