Skip to content

Commit

Permalink
Put usage to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Dec 6, 2016
1 parent 4f8ef6f commit 51c6119
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@

Full, scoped and component-friendly CSS support for JSX (SSR + browser).

## Features

- Full CSS support, no tradeoffs in power
- Runtime size of just **500 bytes**
- Complete isolation: Selectors, animations, keyframes
- Built-in CSS-prefixing
- Very fast, minimal and efficient transpilation (see below)
- High-performance runtime-CSS-injection when not server-rendering
- Future-proof: Equivalent to server-renderable "Shadow CSS"
- Works like the deprecated `<style scoped>`, but the styles get injected only once per component

## Usage

Firstly, install the package:
Expand Down Expand Up @@ -54,6 +43,17 @@ export default () => (
)
```

## Features

- Full CSS support, no tradeoffs in power
- Runtime size of just **500 bytes**
- Complete isolation: Selectors, animations, keyframes
- Built-in CSS-prefixing
- Very fast, minimal and efficient transpilation (see below)
- High-performance runtime-CSS-injection when not server-rendering
- Future-proof: Equivalent to server-renderable "Shadow CSS"
- Works like the deprecated `<style scoped>`, but the styles get injected only once per component

## How It Works

The example above compiles to the following:
Expand Down

0 comments on commit 51c6119

Please sign in to comment.