title: How can i solve the problem from the book road to react at page 78 ? I keep getting undefine for one of the methods in the table component
body: <pre><code>import React, { Component } from 'react';
    import './App.css';
  
    const list = [
      {
        title: 'React',
        url: 'https://facebook.github.io/react/',
        author: 'Jordan Walke',
        num_comments: 3,
        points: 4,
        objectID: 0,
      },
      {
        title: 'Redux',
        url: 'https://github.com/reactjs/redux',
        author: 'Dan Abramov, Andrew Clark',
        num_comments: 2,
        points: 5,
        objectID: 1,
      },
    ];
  
    class App extends Component {
  
  
      state = {
        list,
        text: 'abc',
        searchTerm: ''
      }
  
  
  
      onDisMiss = (id) =&gt; {
        const updateList = this.state.list.filter((item) =&gt; item.objectID != id)
        return () =&gt; this.setState({ list: updateList })
      }
  
      onSearchChange = (event) =&gt; {
        this.setState({ searchTerm: event.target.value })
      }
  
      isSearched = (searchTerm) =&gt; {
        return (item) =&gt; item.title.toLowerCase().includes(searchTerm.toLowerCase())
      }
  
      render() {
        const { searchTerm, list } = this.state
        return (
          &lt;div&gt;
            &lt;Search value={searchTerm}
              onChange={this.onSearchChange}&gt;Search&lt;/Search&gt;
            &lt;Table list={list} pattern={searchTerm} onDissMiss={this.onDisMiss} /&gt;
          &lt;/div&gt;
        );
      }
    }
  
  
    class Search extends Component {
      render() {
        const { value, onChange, children } = this.props
        return (
          &lt;div&gt;
            &lt;form&gt;
              {children}&lt;input type="text" onChange={onChange} value={value} /&gt;
            &lt;/form&gt;
          &lt;/div&gt;
        );
      }
    }
  
  
    class Table extends Component {
  
      render() {
        const { list, pattern, onDisMiss } = this.props
        return (
          &lt;div&gt;
            {list.filter(isSearched(pattern)).map(item =&gt;
              &lt;div key={item.objectID}&gt;
                &lt;span&gt;&lt;a href={item.url}&gt;{item.title}&lt;/a&gt;&lt;/span&gt;
                &lt;span&gt;{item.author}&lt;/span&gt;
                &lt;span&gt;{item.num_comments}&lt;/span&gt;
                &lt;span&gt;{item.points}&lt;/span&gt;
  
                &lt;span&gt;
                  &lt;button onClick={onDisMiss(item.objectID)} type="button"&gt;Dismiss&lt;/button&gt;
                &lt;/span&gt;
  
              &lt;/div&gt;)
            }
          &lt;/div&gt;
        );
      }
    }
    export default App;
  </code></pre>
  
  <h2> <strong>Road to react Book</strong> The Table component related.I get undefined for the <em>isSearched method</em>. how can I fix it so it works correctly its from the book road to react it  seems like the book has a few error which I have problems solving because am just learning react. can you help with the solution and why this problem is actually happening</h2>