1
+
2
+## Input
3
+
4
+```javascript
5
+function Component(props) {
6
+ const item = useFragment(FRAGMENT, props.item);
7
+ useFreeze(item);
8
+
9
+ const count = new MaybeMutable(item);
10
+ return (
11
+ <View>
12
+ <View>
13
+ {<span>Text</span>}
14
+ {<span>{maybeMutate(count)}</span>}
15
+ </View>
16
+ </View>
17
+ );
18
+}
19
+
20
+```
21
+
22
+## Code
23
+
24
+```javascript
25
+import * as React from "react";
26
+function Component(props) {
27
+ const $ = React.unstable_useMemoCache(21);
28
+ const item = useFragment(FRAGMENT, props.item);
29
+ useFreeze(item);
30
+ const c_0 = $[0] !== item;
31
+ let t1;
32
+ let t2;
33
+ let t3;
34
+ let t4;
35
+ let t5;
36
+ let t6;
37
+ let t7;
38
+ if (c_0) {
39
+ const count = new MaybeMutable(item);
40
+
41
+ t6 = View;
42
+ t7 = "\n ";
43
+ t3 = View;
44
+ t4 = "\n ";
45
+ let t0;
46
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
47
+ t0 = <span>Text</span>;
48
+ $[8] = t0;
49
+ } else {
50
+ t0 = $[8];
51
+ }
52
+ t5 = "\n ";
53
+ t1 = "span";
54
+ t2 = maybeMutate(count);
55
+ $[0] = item;
56
+ $[1] = t1;
57
+ $[2] = t2;
58
+ $[3] = t3;
59
+ $[4] = t4;
60
+ $[5] = t5;
61
+ $[6] = t6;
62
+ $[7] = t7;
63
+ } else {
64
+ t1 = $[1];
65
+ t2 = $[2];
66
+ t3 = $[3];
67
+ t4 = $[4];
68
+ t5 = $[5];
69
+ t6 = $[6];
70
+ t7 = $[7];
71
+ }
72
+ const c_9 = $[9] !== t1;
73
+ const c_10 = $[10] !== t2;
74
+ let t8;
75
+ if (c_9 || c_10) {
76
+ t8 = <t1>{t2}</t1>;
77
+ $[9] = t1;
78
+ $[10] = t2;
79
+ $[11] = t8;
80
+ } else {
81
+ t8 = $[11];
82
+ }
83
+ const c_12 = $[12] !== t3;
84
+ const c_13 = $[13] !== t4;
85
+ const c_14 = $[14] !== t5;
86
+ const c_15 = $[15] !== t8;
87
+ let t9;
88
+ if (c_12 || c_13 || c_14 || c_15) {
89
+ t9 = (
90
+ <t3>
91
+ {t4}
92
+ {t0}
93
+ {t5}
94
+ {t8}
95
+ </t3>
96
+ );
97
+ $[12] = t3;
98
+ $[13] = t4;
99
+ $[14] = t5;
100
+ $[15] = t8;
101
+ $[16] = t9;
102
+ } else {
103
+ t9 = $[16];
104
+ }
105
+ const c_17 = $[17] !== t6;
106
+ const c_18 = $[18] !== t7;
107
+ const c_19 = $[19] !== t9;
108
+ let t10;
109
+ if (c_17 || c_18 || c_19) {
110
+ t10 = (
111
+ <t6>
112
+ {t7}
113
+ {t9}
114
+ </t6>
115
+ );
116
+ $[17] = t6;
117
+ $[18] = t7;
118
+ $[19] = t9;
119
+ $[20] = t10;
120
+ } else {
121
+ t10 = $[20];
122
+ }
123
+ return t10;
124
+}
125
+
126
+```
127
+
\ No newline at end of file