import React from 'react'; import ReactDOM from 'react-dom'; import { DropDownList } from '../src/main'; const colors = [ { text: "Blue", value: "#00007f" }, { text: "Orange", value: "#ffa500" }, { text: "Green", value: "#007f00" } ]; const sizes = [ 100, 110, 120, 130, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 300 ]; class BasicUsageExample extends React.Component { state = { color: "#00007f", size: 100 }; handleColorChange = (value) => { this.setState({ color: value }); }; handleSizeChange = (value) => { this.setState({ size: value }); }; reset = () => { this.setState({ color: "#00007f", size: 100 }); } render() { const style = { backgroundColor: this.state.color, width: this.state.size + "px", height: this.state.size + "px" }; return (