Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde7549f

Browse files
authored
Update README.md
1 parent0ca5cb1 commitde7549f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ console.log(tree)
2929
// we can setup listeners
3030
constdestroyRoot=listen(tree, (root)=>console.log('root', root))
3131
// on initial setup prints the full tree 👉 root { a: { b: { c: 1, d: 1 } } }
32+
// the return value is a function which destroys the listener
3233
constdestroyA=listen(tree.a, (a)=>console.log('a', a))
3334
// 👉 a { b: { c: 1 } }
3435
constdestroyB=listen(tree.a.b, (b)=>console.log('b', b))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp