Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 22 hours 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T14:55:59.000Z (10 months ago)
- Last Synced: 2025-01-03T22:11:36.777Z (8 days ago)
- Topics: babel, react, typescript
- Language: TypeScript
- Homepage: https://forgetti.vercel.app/
- Size: 980 KB
- Stars: 354
- Watchers: 4
- Forks: 8
- Open Issues: 6
-
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.
[![NPM](https://img.shields.io/npm/v/forgetti.svg)](https://www.npmjs.com/package/forgetti) [![JavaScript Style Guide](https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb)](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[![React without memo](https://img.youtube.com/vi/lGEMwh32soc/0.jpg)](https://www.youtube.com/watch?v=lGEMwh32soc "React without memo")
## Demos
- React [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?style=flat-square&logo=codesandbox)](https://codesandbox.io/s/github/LXSMNSYC/forgetti/tree/main/examples/react)
- Preact [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?style=flat-square&logo=codesandbox)](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
![Sponsors](https://github.com/lxsmnsyc/sponsors/blob/main/sponsors.svg?raw=true)
## License
MIT © [lxsmnsyc](https://github.com/lxsmnsyc)