I want to use lodash within class property but it always return me null for the value. I followed this Perform debounce in React.js (second answer and solution number 3)
my code:
// func
handleSearchInput = debounce(e => {
console.log(e);
e.persist();
console.log(e.target);
}, 500);
// Render
<Input
type="text"
onKeyDown={this.handleSearchInput}
placeholder="Search..."
/>
all my console.log()
always return me null. I want to get my input value.
Any solution?