https://github.com/lxsmnsyc/forgetti
Solve your hook spaghetti (with more spaghetti). Inspired by React Forget.
https://github.com/lxsmnsyc/forgetti
babel react typescript
Last synced: 21 days ago
JSON representation
Solve your hook spaghetti (with more spaghetti). Inspired by React Forget.
- Host: GitHub
- URL: https://github.com/lxsmnsyc/forgetti
- Owner: lxsmnsyc
- License: mit
- Created: 2023-02-15T03:34:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T14:55:59.000Z (about 1 year ago)
- Last Synced: 2025-03-28T19:08:10.645Z (28 days ago)
- Topics: babel, react, typescript
- Language: TypeScript
- Homepage: https://forgetti.vercel.app/
- Size: 980 KB
- Stars: 354
- Watchers: 4
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - forgetti
README
# forgetti
> Solve your hook spaghetti (with more spaghetti). Inspired by React Forget.
[](https://www.npmjs.com/package/forgetti) [](https://github.com/airbnb/javascript)
## Install
```bash
npm i forgetti
``````bash
yarn add forgetti
``````bash
pnpm add forgetti
```## What is this?
Forgetti is an auto-memoization Babel plugin I made for a hook-based flow like React hooks. This plugin was inspired by React Forget.
## Why
> [!NOTE]
> Please watch the video. Video explains about the problems it solves and benefits it delivers[](https://www.youtube.com/watch?v=lGEMwh32soc "React without memo")
## Demos
- React [](https://codesandbox.io/s/github/LXSMNSYC/forgetti/tree/main/examples/react)
- Preact [](https://codesandbox.io/s/github/LXSMNSYC/forgetti/tree/main/examples/preact)
## Integrations
- [Rollup](https://github.com/lxsmnsyc/forgetti/tree/main/packages/rollup)
- [Vite](https://github.com/lxsmnsyc/forgetti/tree/main/packages/vite)
- [Webpack and NextJS](https://github.com/SukkaW/forgetti-loader)## Docs
- [Configuration](https://github.com/lxsmnsyc/forgetti/tree/main/docs/configuration.md)
- [Optimizations](https://github.com/lxsmnsyc/forgetti/tree/main/docs/optimizations.md)## Sponsors

## License
MIT © [lxsmnsyc](https://github.com/lxsmnsyc)