let [amount, setAmount] = React.useState(100);
function ChangeHandler(event) {
  let value = event.target.value;
  setAmount(value);
  props.update(amount);
}
props.update is a function that I passed from a higher component to update another Hook.
 
     
    