📜  react-select - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:28.893000             🧑  作者: Mango

代码示例1
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 = () => (