title: using values as parameters Material UI/React
body: <p>I would like to use the values from my TextFields in other functions to make calculations by passing them as parameters</p>
  <pre><code>const [amount, setAmount] = useState(0);
  const [unitPrice1, setUnitPrice] = useState(0);
  
               &lt;TextField
                  value={amount}
                  id=&quot;output_elevator-amount&quot;
                  label=&quot;Elevator amount&quot;
                  color='primary'
                  type=&quot;number&quot;
                  InputLabelProps={{
                    shrink: true,
                  }}
                  InputProps={{
                    readOnly: true,
                  }}
                  onChange={(event) =&gt; {setAmount(parseInt(event.target.value))}}
                  /&gt;
              &lt;TextField
                  
                  value={unitPrice1}
                  id=&quot;output_elevator-unit-price'&quot;
                  label=&quot;Unit Price of Elevators&quot;
                  color='primary'
                  // variant=&quot;outlined&quot;
                  type=&quot;number&quot;
                  InputLabelProps={{
                    shrink: true,
                  }}
                  InputProps={{
                    readOnly: true,
                  }}
                  onChange={(event) =&gt; {setUnitPrice(parseInt(event.target.value))}}
                  /&gt;
  </code></pre>
  <p>something like this but I dont think that is the right way</p>
  <pre><code>const standard = (amount:any, unitPrice1:any) =&gt; {
      console.log(&quot;returns standard&quot;)
      
      let elevatorAmt = amount
      console.log(elevatorAmt)
  </code></pre>