title: Multiple functions in an onChange? Answers I've seen aren't working
body: <p>I'm trying to do multiple things when an onChange event happens. I've seen some other answers, but all of them are giving the error "Expected an assignment or function call and instead saw an expression".</p>
  
  <pre><code>import React, {useState, useEffect} from 'react';
  
  function useDebounce(value, delay) {
    const [debouncedValue, setDebouncedValue] = useState(value);
  
    useEffect(
      () =&gt; {
        const handler = setTimeout(() =&gt; {
          setDebouncedValue(value);
        }, delay);
  
        return () =&gt; {
          clearTimeout(handler);
        };
      },
      [value, delay],
    );
  
    return debouncedValue;
  }
  
  function App() {
  
    const [cardNames, setCardName] = useState([]);
    const [searchInput, setSearchInput] = useState("pikachu");
    const debouncedInput = useDebounce(searchInput, 1000)
  
    const rezCards = async () =&gt; {
      const rez = await fetch('https://api.pokemontcg.io/v1/cards?name='+searchInput+'')
      const json = await rez.json()
      setCardName(json.cards)
    }
  
    useEffect(() =&gt; {
      rezCards()
    },[debouncedInput])
  
    return &lt;aside&gt;
      &lt;p&gt;Search Term: {searchInput}&lt;/p&gt;
      &lt;form&gt;
        &lt;input id="search-field" type="text" value={searchInput} onChange = {
            searchCard =&gt; setSearchInput(searchCard.target.value)
          }&gt;&lt;/input&gt;
      &lt;/form&gt;
      &lt;hr /&gt;
      &lt;ul&gt;
        {cardNames
        .map(
          (cardName) =&gt; {
            return &lt;li key={cardName.id}&gt;&lt;img src={cardName.imageUrl} /&gt;&lt;span className="poke-cardname"&gt;{cardName.name}&lt;/span&gt;&lt;/li&gt;
          }
        )}
      &lt;/ul&gt;
      &lt;/aside&gt;
  }
  
  export default App
  </code></pre>
  
  <p>The line is the onChange in the #search-field input. I've tried this:</p>
  
  <pre><code>&lt;input id="search-field" type="text" value={searchInput} onChange = {
            () =&gt; { searchCard =&gt; setSearchInput(searchCard.target.value); console.log("Test"); }
  }&gt;&lt;/input&gt;
  </code></pre>
  
  <p>(The console.log could be anything, such as another function. It doesn't matter, the error is always the same.)</p>