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