Skip to content

Commit 8b1cd00

Browse files
committed
Initial commit, intro
1 parent 6e98c10 commit 8b1cd00

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/content/learn/state-as-a-snapshot.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
2-
title: State as a Snapshot
2+
title: Stan jako migawka
33
---
44

55
<Intro>
66

7-
State variables might look like regular JavaScript variables that you can read and write to. However, state behaves more like a snapshot. Setting it does not change the state variable you already have, but instead triggers a re-render.
7+
Zmienne stanu mogą wyglądać jak zwykłe zmienne javascriptowe, które można odczytywać i zapisywać. Jednak stan zachowuje się bardziej jak migawka. Ustawienie go nie zmienia zmiennej stanu, którą już masz, ale zamiast tego wyzwala ponowne renderowanie.
88

99
</Intro>
1010

1111
<YouWillLearn>
1212

13-
* How setting state triggers re-renders
14-
* When and how state updates
15-
* Why state does not update immediately after you set it
16-
* How event handlers access a "snapshot" of the state
13+
* Jak ustawienie stanu wyzwala ponowne renderowanie
14+
* Kiedy i jak stan się aktualizuje
15+
* Dlaczego stan nie aktualizuje się natychmiast po jego ustawieniu
16+
* Jak procedury obsługi zdarzeń uzyskują dostęp do "migawki" stanu
1717

1818
</YouWillLearn>
1919

src/sidebarLearn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"path": "/learn/render-and-commit"
117117
},
118118
{
119-
"title": "State as a Snapshot",
119+
"title": "Stan jako migawka",
120120
"path": "/learn/state-as-a-snapshot"
121121
},
122122
{

0 commit comments

Comments
 (0)