Can't get store value after the value was updated using React
Can't get store value after the value was updated using React I have a SearchBar component and it has a subcomponent SearchBarItem. I passed the method handleSelectItem() to subcomponent to dispatch value to store and it works (I saw it from the Redux tool in Chrome). handleSelectItem() Then, when I tried to get the value from the method submitSearch() , which I also passed it from the parent component, it shows: submitSearch() Cannot read property 'area' of undefined. I'm still not so familiar with React. If someone can help, it will be very appreciated. Thanks in advance. This is parent component SearchBar: class SearchBar extends Component { handleSelectItem = (selectCategory, selectedItem) => { if (selectCategory === 'areas') { this.props.searchActions.setSearchArea(selectedItem); } } submitSearch() { console.log(this.props.area); // this one is undefined } render() { return ( <div className="searchBar...