Skip to content
This repository has been archived by the owner on Nov 12, 2017. It is now read-only.

Commit

Permalink
Update StyleContainer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkrick committed Apr 25, 2016
1 parent ff84604 commit 9ebffca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-look/docs/api/StyleContainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Adds a static `font`-face string to the **fonts**.
### `renderStaticStyles(prefixer)`
Renders the whole mappings into a single static CSS string. It optionally takes a `prefixer` (which must inherit [Prefixer](./Prefixer.md)) used to prefix the styles and the `@keyrames` prefix.
### `generateClassName(styles)`
Sorts your `styles`, stringifies them and generates a hash code which is returned as a `className`. This prevents dublication.
Sorts your `styles`, stringifies them, and generates a hash code which is returned as a `className`. This prevents duplicates.
### `requestClassName([prefix])`
Returns an unused `className` which is build of a `prefix` *(default is `c`)* and an intern counter that gets incremented every call.
Returns an unused `className` which is comprised of a `prefix` *(default is `c`)* and an internal incrementing counter.
### `subscribe(listener)`
You can subscribe to style changes by passing a `listener` which then will be called.

0 comments on commit 9ebffca

Please sign in to comment.