Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SukkaW/foxact
React Hooks/Utils done right. For Browser, SSR, and React Server Components.
https://github.com/SukkaW/foxact
react react-hooks react-server-components
Last synced: 5 days ago
JSON representation
React Hooks/Utils done right. For Browser, SSR, and React Server Components.
- Host: GitHub
- URL: https://github.com/SukkaW/foxact
- Owner: SukkaW
- License: mit
- Created: 2023-05-31T03:27:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-02T19:09:58.000Z (10 days ago)
- Last Synced: 2024-11-04T22:36:37.430Z (8 days ago)
- Topics: react, react-hooks, react-server-components
- Language: TypeScript
- Homepage: https://foxact.skk.moe
- Size: 902 KB
- Stars: 316
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 ``, `startTransition`, `` without worrying about app falling apart.
#### SSR Friendly
Works perfectly with server-side rendering, incremental static generation, and static site generation.
Supports [Next.js](https://nextjs.org) (both Pages Directory and App Router), [Waku](https://github.com/dai-shi/waku), [Gatsby](https://www.gatsbyjs.com/), [Remix](https://remix.run/), and [Shopify Hydrogen](https://hydrogen.shopify.dev/).
#### 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](./LICENSE)
----
**foxact** © [Sukka](https://github.com/SukkaW), Released under the [MIT](./LICENSE) License.
Authored and maintained by Sukka with help from contributors ([list](https://github.com/SukkaW/foxact/graphs/contributors)).> [Personal Website](https://skk.moe) · [Blog](https://blog.skk.moe) · GitHub [@SukkaW](https://github.com/SukkaW) · Telegram Channel [@SukkaChannel](https://t.me/SukkaChannel) · Mastodon [@[email protected]](https://acg.mn/@sukka) · Twitter [@isukkaw](https://twitter.com/isukkaw) · Keybase [@sukka](https://keybase.io/sukka)