import React from "react"; class RangeInput extends React.Component { constructor(props) { super(props); this.state = { value: '', }; } inputChange = (e) => { this.setState({value: e.target.value}); }; render() { const {min, max} = this.props; const hasError = this.state.value.length > max || this.state.value.length < min; return (
); } } const RangeInputParent = () => { return( ) } export default RangeInputParent