From bc5561a54a0c5139a7b1cb7c8ca48c79e0543c3f Mon Sep 17 00:00:00 2001 From: Mohamad Mohebifar Date: Tue, 12 Mar 2024 13:08:57 -0400 Subject: [PATCH] docs: Update the language of the comparison with Forgetti --- apps/docs/pages/comparisons/forgetti.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/docs/pages/comparisons/forgetti.mdx b/apps/docs/pages/comparisons/forgetti.mdx index 2303c14..dcc4fcf 100644 --- a/apps/docs/pages/comparisons/forgetti.mdx +++ b/apps/docs/pages/comparisons/forgetti.mdx @@ -4,6 +4,8 @@ import { DynamicLiveCodeSandpack } from "@components/DynamicLiveCodeSandpack"; [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. +Disclaimer: This comparison is not meant to degrade any of the tools. It's just a comparison of the features and limitations of the tools. + | **Feature** | React Unforget | Forgetti | | :----- | :----: | ----: | | Basic components with no dependencies | ✅ | ✅ | @@ -37,7 +39,7 @@ export default function CounterWithMutationTracking() { -Yay 🎉! It worked. Now let's make it a bit more complex. Remember the example from the home page of Unforget? Let's make the `text` value mutable. +It works for this simple case. Now let's make it a bit more complex. Remember the example from the home page of Unforget? Let's make the `text` value mutable. ```ts @@ -127,7 +129,7 @@ export default function CounterWithMutationTracking() { `} -Oh no! It failed again. +It fails again. Ok, one more test. Let's see how it handles alias analysis. @@ -162,4 +164,4 @@ export default function App() { -And it failed again. Click on the button and you will see that the value is not updated. \ No newline at end of file +If you click on the button, you will see that the value is not updated. \ No newline at end of file