Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 918 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 918 Bytes

react-beco

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 JavaScript Style Guide

Install

npm install --save react-beco

Components

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>;

License

GPL-3.0 © fea17e86