UNPKG

react-scrollsyx

Version:

An ambitious light-weight react module written in TypeScript for tracking scroll progress in a performant way. Developed for use with spring based animation libraries such as react-spring, but can be used with or without any library.

13 lines (12 loc) 261 B
import { jsxs as n } from "react/jsx-runtime"; import * as e from "react"; const c = () => { const [t, o] = e.useState(0); return /* @__PURE__ */ n("button", { onClick: () => o(t + 1), children: [ "Click me ", t ] }); }; export { c as Button };