Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react select

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

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

const MyComponent = () => (
  <Select options={options} />
)
Source by react-select.com #
 
PREVIOUS NEXT
Tagged: #react #select
ADD COMMENT
Topic
Name
5+7 =