Answers for "react select bootstrap"

5

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} />
)
Posted by: Guest on July-31-2020
0

react js bootstrap select option required

Make value blank and add any key but unique
 Example:
<option key={'Blank'} value={''}>Choose Type</option>
Posted by: Guest on October-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language