X 归档 2023-05-14
What if you could use web workers directly from JSX? 🤯
<button
onClick$={worker$(() => expensiveStuff())}
>
Run in web worker!
</button>
<button
onClick$={worker$(() => expensiveStuff())}
>
Run in web worker!
</button>
如果可以直接在 JSX 里用 web workers 呢?🤯
<button
onClick$={worker$(() => expensiveStuff())}
>
Run in web worker!
</button>
<button
onClick$={worker$(() => expensiveStuff())}
>
Run in web worker!
</button>
I’m loving Qwik’s API, and how easy-to-use, yet well-surfaced features are coming out of it. worker$ is a very cool concept. https://t.co/qtVgKsVdog
我太喜欢 Qwik 的 API 了:易上手,特性又暴露得恰到好处。worker$ 是个非常酷的概念。 https://t.co/qtVgKsVdog

