onChange={(e) => { const timeoutFn = setTimeout(() => { // This func triggers rerender of the component onInputChange(e.target.value); }, 2000); ; }}onChange={(e) => { const timeoutFn = setTimeout(() => { // This func triggers rerender of the component onInputChange(e.target.value); }, 2000); }}