Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
docs: Update comparison with forgetti
Browse files Browse the repository at this point in the history
  • Loading branch information
mohebifar committed Mar 1, 2024
1 parent 9946c82 commit 04a98ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/docs/pages/comparisons/forgetti.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Forgetti

[Forgetti](https://github.com/lxsmnsyc/forgetti) is also another alternative tool made to help React apps run faster. But, when it comes to more complicated parts of an app, it doesn't really do the job and generates failing code. Unlike React Unforget, which uses a clever trick with a single saved spot to keep important data handy, Forgetti sticks to the usual React tricks like useMemo and useCallback. This makes Forgetti a bit harder to use and not as good at speeding things up, especially when you compare it to the smarter ways React Unforget works.
[Forgetti](https://github.com/lxsmnsyc/forgetti) is also another alternative tool made to optimize React components at build time to make it run faster at runtime. But, when it comes to more complicated patterns, it generates failing code. For example, loops and mutations can lead to generating code that does not work.

| **Feature** | React Unforget | Forgetti |
| :----- | :----: | ----: |
| Basic components with no dependencies |||
| Basic components with dependencies |||
| Breaking down JSX || ✖️ |
| Basic mutation detection || ✖️ |
| Control flows || Fails with while/for loops |

0 comments on commit 04a98ee

Please sign in to comment.