I need to perform a Search when user stops typing.I know I am supposed to use setTimeout() . But with Reactjs I cant find how it works. Can
I used the debounce function of lodash
onChangeSearchInput = (evt)=> { this.debouncedSearch(evt.target.value); }; debouncedSearch = debounce(function (query) { this.setState({query}); }, 1000);
Somewhere in my render method i have this input field