๐Ÿ“ฆ SukkaW / foxact

React Hooks/Utils done right. For Browser, SSR, and React Server Components.

โ˜… 420 stars โ‘‚ 15 forks ๐Ÿ‘ 420 watching โš–๏ธ Other
reactreact-hooksreact-server-components
๐Ÿ“ฅ Clone https://github.com/SukkaW/foxact.git
HTTPS git clone https://github.com/SukkaW/foxact.git
SSH git clone git@github.com:SukkaW/foxact.git
CLI gh repo clone SukkaW/foxact
SukkaW SukkaW release: 0.2.52 af7c09a 10 days ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ packages
๐Ÿ“„ .gitignore
๐Ÿ“„ .node-version
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ eslint.config.js
๐Ÿ“„ LICENSE
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.base.json
๐Ÿ“„ turbo.json
๐Ÿ“„ README.md
foxact logo

foxact

React Hooks/Utils done right. For Browser, SSR, and React Server Components.

Documentation

https://foxact.skk.moe

Features

React 18 Safe

All hooks and utils are React 18+ Concurrent Rendering resilient. foxact strictly follows React best practices, e.g. never read and write ref during the render phase, unlike many other open-sourced React Hooks libraries. You can use foxact with <Suspense />, startTransition, <OffScreen /> without worrying about app falling apart.

SSR Friendly

Works perfectly with server-side rendering, incremental static generation, and static site generation.

Supports Next.js (both Pages Directory and App Router), Waku, Gatsby, Remix, and Shopify Hydrogen.

Type Safe and Sound

Written in TypeScript. Unlocking strong typing benefits with TypeScript 4.8+.

Super Lightweight

The entire foxact library has zero dependencies, ensuring a lean and efficient solution. And what's more...

Fully Tree Shakable

Every hook and util is isolated and side-effects free, eliminating unused code and delivering leaner bundles for lightning-fast load times. Feel free to take what you want from foxact without worrying about client bundle size.

License

MIT


foxact ยฉ Sukka, Released under the MIT License. Authored and maintained by Sukka with help from contributors (list).

Personal Website ยท Blog ยท GitHub @SukkaW ยท Telegram Channel @SukkaChannel ยท Mastodon @sukka@acg.mn ยท Twitter @isukkaw ยท Keybase @sukka