joyent-portal/legacy/spikes/fuzzy-search/react-selectize-stateless/src/search.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

29 lines
562 B
JavaScript

const actions = require('./actions');
const React = require('react');
const axios = require('axios');
const users = require('../../users');
const ReactSelectize = require("react-selectize");
const SimpleSelect = ReactSelectize.SimpleSelect;
const Search = () => {
let _options = ["apple", "mango", "grapes", "melon", "strawberry"];
_options = _options.map(function(fruit){
return {label: fruit, value: fruit}
});
return (
<SimpleSelect
options={_options}
placeholder="Select a fruit"
theme="material"
/>
);
}
module.exports = Search;