Skip to content

Commit 70158b0

Browse files
committed
docs: about state
1 parent 0adf43b commit 70158b0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

demo/tiddlers/Index.tid

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ Button2:
1515

1616
<$likeButtonExampleWidget stateTiddler="$:/state/tw-react/readme/like-button" />
1717

18+
State:
19+
20+
{{$:/state/tw-react/readme/like-button}}
21+
22+
Two buttons have shared state [[$:/state/tw-react/readme/like-button]], but not updated when state changed (you can implement this in the `refresh` method), so when you click one, and close this tiddler then reopen it, you will see two buttons have same ''clicked'' state.
23+
1824
[[Readme|$:/plugins/linonetwo/tw-react/readme]]

0 commit comments

Comments
 (0)