You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/preserving-and-resetting-state.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ label {
92
92
93
93
<Diagramname="preserving_state_tree"height={248}width={395}alt="Діаграма дерева React-компонентів. Кореневий вузол позначений як 'div' та має двоє дочірніх компонентів. Кожний дочірній компонент названий 'Counter' і обидва містять бульбашку стану з назвою 'count' із значенням 0.">
94
94
95
-
React дерево
95
+
Дерево React
96
96
97
97
</Diagram>
98
98
@@ -496,7 +496,7 @@ export default function App() {
496
496
return (
497
497
<div>
498
498
{isPaused ? (
499
-
<p>Побачимось пізніше!</p>
499
+
<p>Побачимось!</p>
500
500
) : (
501
501
<Counter />
502
502
)}
@@ -611,7 +611,7 @@ export default function App() {
611
611
setIsFancy(e.target.checked)
612
612
}}
613
613
/>
614
-
Використати вишукану стилізацію
614
+
Використовувати вишукану стилізацію
615
615
</label>
616
616
</div>
617
617
);
@@ -726,7 +726,7 @@ export default function MyComponent() {
726
726
<MyTextField />
727
727
<button onClick={() => {
728
728
setCounter(counter +1)
729
-
}}>Натиснуто {counter} разів</button>
729
+
}}>Клацнуто разів:{counter}</button>
730
730
</>
731
731
);
732
732
}
@@ -753,7 +753,7 @@ export default function Scoreboard() {
0 commit comments