An open API service indexing awesome lists of open source software.

https://github.com/jossmac/react-select-simple-value

A simple value wrapper for react-select
https://github.com/jossmac/react-select-simple-value

react-select

Last synced: 9 months ago
JSON representation

A simple value wrapper for react-select

Awesome Lists containing this project

README

          

# react-select-simple-value

A simple value wrapper for [react-select](https://github.com/JedWatson/react-select).

### Install

```bash
yarn add react-select-simple-value
```

### Use

```jsx
import ReactSelect from 'react-select';
import SimpleValue from 'react-select-simple-value';

export const MySelect = ({ options, value, ...props }) => (

{simpleProps => }

);

/* elsewhere in your application */

class extends React.Component {
render() {
return (

);
}
}
```

### Props

The following props are accepted, consumed, and passed on to the `children` function. Only `defaultValue` and `value` are augmented.

- defaultValue
- getOptionValue
- isMulti
- options
- value