import React from 'react' import { debounce } from '../utils' import './PercentageField.css' export default class PercentageField extends React.Component { debouncedOnChange = this.props.debounce ? debounce(this.props.debounce, this.props.input.onChange) : this.props.input.onChange state = { value: this.props.input?.value } onChange(value) { this.setState({ value }) this.debouncedOnChange(value) } render() { return (