Skip to main content

With Debounce

HOC debounce

Ví dụ

import { withDebounce } from '@xobuilder/utils';
import { RangeSlider } from '@shopify/polaris';

const RangeSliderWithDebounce = withDebounce(RangeSlider, 'value', 'onChange', 500);

export const Demo: FC = () => {
return (
<RangeSliderWithDebounce
label="Range slider"
value={value}
onChange={handleChange}
min={0}
max={100}
/>
)
}