// @flow import React from "react"; import classNames from "classnames"; type Props = { options: string[], optionSelected: string => void, preselectedOption?: string, className: any }; class DropDown extends React.Component { render() { const { options, preselectedOption, className } = this.props; return (
); } change = (event: Event) => { this.props.optionSelected(event.target.value); }; } export default DropDown;