Skip to content

Commit bb4556b

Browse files
committed
change intro
1 parent 452cd88 commit bb4556b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/sharing-state-between-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Berbagi State Antar Komponen
55

66
<Intro>
77

8-
Sometimes, you want the state of two components to always change together. To do it, remove state from both of them, move it to their closest common parent, and then pass it down to them via props. This is known as *lifting state up,* and it's one of the most common things you will do writing React code.
8+
Terkadang, Anda ingin 2 komponen selalu berubah secara bersamaan. Untuk melakukannya, hapus *state* dari kedua komponen, pindahkan ke komponen induk terdekat, dan kemudian oper ke komponen tersebut melalui *props*. Ini dikenal sebagai *lifting state up,* dan ini adalah salah satu hal yang paling umum yang akan Anda lakukan saat menulis kode React.
99

1010
</Intro>
1111

0 commit comments

Comments
 (0)