Skip to content

Commit 30434b3

Browse files
committed
docs: update
1 parent 5a35d76 commit 30434b3

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,22 @@ _What you see above is standard HTML ([data-attributes](https://developer.mozill
1515
- 🥶 Below zero-runtime, it's zero JavaScript. Smaller bundles and faster code.
1616
- 💎 What you write is what you get. No transformations, easy debugging.
1717
- 🎒 Standards-based, reusable styles across frameworks, compatible with Tailwind or any CSS framework
18-
- ⚡️ Instantly productive, no learning curve, simple onboarding.
18+
- ⚡️ Instantly productive, no learning curve, simple on-boarding.
1919
- 💖 Back to basics with a modern twist: access the full power of HTML and CSS, enhanced with type safety and code completion (without the complexity).
2020

21+
## Differences
22+
23+
| | CSS-in-JS | MistCSS |
24+
| -------------------- | -------------------------------------- | ----------------------------- |
25+
| Runtime | `~0-10 KB` | `0 KB` |
26+
| JavaScript functions | `1 per component` | `0` |
27+
| TypeScript code | `yes (at least for props)` | `no (generated for the user)` |
28+
| Debugging | `react devtools` | `browser inspector` |
29+
| Syntax highlighting | `depends (may require extension)` | `no additional extension` |
30+
| Generated bundle | `runtime + JS functions + logic + CSS` | `CSS` |
31+
32+
_This is general comparison and may vary depending on the library you're using._
33+
2134
## Usage
2235

2336
Traditional approaches require wrapping your markup/styles in JavaScript functions (`Button.tsx``<button/>`, `Input.tsx``<input/>`, ...), defining props with TypeScript types, and writing logic to manage class names.

0 commit comments

Comments
 (0)