X 归档 2022-11-11
🤯 preact signals also work OUTSIDE of (p)react. Hook 'm up with postMessage, and you'll get single line cross-frame reactivity. To sync different vscode webviews for example. Or browser tabs. Or in a chrome extension. Or to chat between iframes. *chef's kiss*
🤯 preact signals 在 (p)react 之外也能用。用 postMessage 把它们连起来,一行代码就能实现跨 frame 的响应式。比如同步不同的 vscode webview。或者浏览器标签页之间。或者在 chrome 扩展里。或者在 iframe 之间对话。绝了 *chef's kiss*

