Show HN: A 1KB CSS-in-JS library with all the bells and whistlesgithub.com6 ポイント·投稿者 sunesimonsen·6 年前·6 コメント
sunesimonsen·2 年前·議論I think property based testing becomes a lot easier when you can just use normal asserts like this: https://github.com/unexpectedjs/unchecked
sunesimonsen·4 年前·議論Really interesting to see Preact adopt this kind of model.I have been working on a similar programming model for a while, where this kind of state management is the only approach:https://github.com/sunesimonsen/dependable-view https://github.com/sunesimonsen/dependable-stateThe library has other kinds of agendas like being able to run without a build step, being really small and allow multiple versions in the page.Examples: https://github.com/sunesimonsen/dependable-example-hackernew... https://github.com/sunesimonsen/dependable-example-todomvc
sunesimonsen·6 年前·議論You are actually right - I should update the readme with unpkg information:import { css, classes } from "https://unpkg.com/[email protected]/dist/bundle.esm.min.js";
sunesimonsen·9 年前·議論An alternative that is much easier to adopt, is to use unexpected-check http://unexpected.js.org/unexpected-check/