import React from 'react' export default class extends React.Component { constructor(props) { super() this.handleChange = this.handleChange.bind(this) } handleChange(e) { this.props.onChange(`${e.target.value}px`) } render() { const minValue = this.props.minValue || 0 const maxValue = this.props.maxValue || 100 return (