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

Commit bc5561a

Browse files
committed
docs: Update the language of the comparison with Forgetti
1 parent 8264b9c commit bc5561a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/docs/pages/comparisons/forgetti.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { DynamicLiveCodeSandpack } from "@components/DynamicLiveCodeSandpack";
44

55
[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.
66

7+
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.
8+
79
| **Feature** | React Unforget | Forgetti |
810
| :----- | :----: | ----: |
911
| Basic components with no dependencies |||
@@ -37,7 +39,7 @@ export default function CounterWithMutationTracking() {
3739

3840
</DynamicLiveCodeSandpack>
3941

40-
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.
42+
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.
4143

4244

4345
```ts
@@ -127,7 +129,7 @@ export default function CounterWithMutationTracking() {
127129
`}
128130
</DynamicLiveCodeSandpack>
129131

130-
Oh no! It failed again.
132+
It fails again.
131133

132134
Ok, one more test. Let's see how it handles alias analysis.
133135

@@ -162,4 +164,4 @@ export default function App() {
162164

163165
</DynamicLiveCodeSandpack>
164166

165-
And it failed again. Click on the button and you will see that the value is not updated.
167+
If you click on the button, you will see that the value is not updated.

0 commit comments

Comments
 (0)