Skip to main content

2 posts tagged with "whereq-ca"

View All Tags

whereq.ca:@whereq/react 的实时演示,在你的浏览器里跑起来

· 8 min read
whereq.ca —— WhereQ 实验室

一份 README 说服不了谁​

组件库这东西,发出去很容易,被真正用起来却很难。

README 里放一张按钮的截图。demo 页面往往是为了看起来像这个库而专门做的一页,真正的组件根本没被加载过。真正的代码躺在某个应用的构建步骤后面,你看不见 —— 于是最该回答的那个问题,这东西真装上去以后到底能不能用?,反而从来没人回答。

这一页要补的就是这个缺口。

whereq.ca 现在有了 @whereq/react 的实时演示 —— 也多了一个可以上手试的游乐场。

WhereQ 实验室就建在这套共享的 React 组件库之上。它在 npm 上的名字是 @whereq/react,而现在实验室把它整个跑了起来:打开 /react,已发布包里的真实组件就渲染在你面前 —— 不是截图,也不是关于它的介绍。

whereq.ca: the @whereq/react demo, live in your browser

· 7 min read
whereq.ca — the WhereQ Lab

A library you cannot trust from a README​

A component library is easy to publish and easy to ignore.

The README shows a picture of a button. The demo page shows a page somebody built to look like the library, with the real component never loaded. The actual code sits in somebody's app, behind a build step, where you cannot see it — so the one thing you want to check, does this thing work when it is really installed?, is the one thing nobody checks.

That is the gap this page closes.

whereq.ca now has a live demo of @whereq/react — and a playground to try it in.

The WhereQ Lab is built from one shared React component library. It lives on npm as @whereq/react, and the Lab now runs it in full: open /react and the real components from the published package render in front of you — not a screenshot of one, and not a story about one.