Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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)