Preact Signals just got a huge performance boost:
Signals rendered as text/props & effects only "pull" as fast as needed for rendering. Since computeds run as-needed, they now only re-run as often as their downstream DOM output can be painted.
H/t to @jovidecroock.com for making this happen.
Posts by
1 year ago
233
34
9
3
What if you could use Radix in Preact without compat?
And what if Radix itself became 60% smaller? And faster.
What if you could have all of Radix and Preact and a router... for less than half the original size of Radix? or of React?
1 year ago
96
9
8
0
it me
1 year ago
6
1
0
0
Fun fact: Preact is used in Bluesky's embed widget. As expected, it's a very tiny portion of the total code ;)
1 year ago
69
13
1
0
or petit
1 year ago
5
1
1
0
A screenshot of the Container.tsx code linked in this post.
TIL: @bsky.app's embed is built with #Preact!
github.com/bluesky-soci...
1 year ago
100
12
4
2
const whom = signal('world')
render(
<h1>Hello {whom}</h1>
)
1 year ago
210
5
7
0
Advertisement