Skip to content

Commit 1b2608c

Browse files
committed
Update examples
1 parent dc7ffe3 commit 1b2608c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

examples/src/view-push.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/*
22
33
# Custom View / Push
4+
5+
!!! tip
6+
This example exists solely to demonstrate what's possible with the view API. You will most likely never need to implement a custom view, except in cases with extreme performance requirements.
7+
48
This example shows a custom view that pushes elements onto itself.
59
610
This can be useful when you only ever append or prepend elements and you require the absolute best performance possible.

examples/src/view-rotate.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/*
22
33
# Custom View / Rotate
4+
5+
!!! tip
6+
This example exists solely to demonstrate what's possible with the view API. You will most likely never need to implement a custom view, except in cases with extreme performance requirements.
7+
48
This example shows a custom view that rotates the order of it's logical children when a signal is updated.
59
610
You can toggle the visibility of the entire view or one of it's children to demonstrate boundary tracking.

0 commit comments

Comments
 (0)