A collection of React Be(haviour) Co(mponents) - React components that provide a specific behaviour. Inspired by projects like react-powerplug and everyday needs in React development.
npm install --save react-beco
import { Debounce } from "react-debounce";
<Debounce
wait={300}
call={value => {
console.log("call", value);
}}
>
{({ call }) => (
<input
type="text"
onChange={e => {
console.log("onChange", e.target.value);
call(e.target.value);
}}
/>
)}
</Debounce>;
GPL-3.0 © fea17e86