diff --git a/src/components/DropDown.js b/src/components/DropDown.js index 5465b90..0d3e456 100644 --- a/src/components/DropDown.js +++ b/src/components/DropDown.js @@ -1,32 +1,24 @@ -import React, { Component } from 'react'; +import React from 'react'; import { Input } from 'reactstrap'; -class DropDown extends Component { - constructor(props) { - super(props); +const DropDown = (props) => { + let options = props.options; + options = options.map((opt) => { + return + }); - this.state = {}; - } - - render() { - let options = this.props.options; - options = options.map((opt) => { - return - }); - - return( + return ( - { options } + {options} - ); - } + ); } export default DropDown; \ No newline at end of file