# `` Tracks user "scratches" or swipes. ## Usage ```jsx import {ScratchSensor} from 'libreact/lib/ScratchSensor'; {(state) =>
      {JSON.stringify(state, null, 4)}
    
}
``` ## Props - `bond` — optional, boolean or string, bonding name to provide as data prop. - `disabled` — optional, boolean, whether to not track scratches. ## State Render prop receives an object with the following signature. ```ts interface IScratchSensorState { isScratching?: boolean; start?: number; end?: number; x?: number; y?: number; dx?: number; dy?: number; docX?: number; docY?: number; posX?: number; posY?: number; elH?: number; elW?: number; elX?: number; elY?: number; } ``` ## `withScratch()` HOC Injects `scratch` prop into your component. ```js import {withScratch} from 'libreact/lib/ScratchSensor'; const MyCompWithScratch = withScratch(MyComp); ``` ## `@withScratch` decorator Injects `scratch` prop into your component. ```js import {withScratch} from 'libreact/lib/ScratchSensor'; @withScratch class MyComp extends Component { } ```