A highly composable & reusable select component in react
npm install react-power-select



``bash`
npm i react-power-select --save
Import the CSS in your bundle
`js`
import 'react-power-select/dist/react-power-select.css'
`js
import React, { Component } from 'react'
import { PowerSelect } from 'react-power-select'
export default class Demo extends Component {
state = {};
handleChange = ({ option }) => {
this.setState({
selectedOption: option
})
}
render() {
return (
selected={this.state.selectedOption}
onChange={this.handleChange}
/>
)
}
}
``
Hat tip to ember-power-select's architecture