UNPKG

@react-input/core

Version:

The core of the packages included in the `@react-input` scope.

2 lines (1 loc) 293 B
import{useRef as r,useMemo as t}from"react";import n from"./Input.js";import i from"./createProxy.js";function e(e){var c=e.init,o=e.tracking,u=r(null),a=r({init:c,tracking:o});return a.current.init=c,a.current.tracking=o,t((function(){return i(u,new n(a.current))}),[])}export{e as default};