title: Array search returns a new empty array
body: <p>Below is my code with a search input hoos and I can't identify why it isn't working.</p>
  <pre><code>import Herois from './json/videos.json'
  
  function App() {
    const [valueInput, setValueInput] = useState('')
    const [newArray, setNewArray] = useState([])
  
    useEffect(() =&gt; {
      const results = Herois.filter((i) =&gt; {
        i.title.toLowerCase().includes(valueInput.toLowerCase())
      })
      
      setNewArray(results)
      console.log(newArray)
    }, [valueInput])
  }
  </code></pre>
  <p>is always becoming an empty array</p>