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

Commit

Permalink
Merge pull request #271 from mattkrick/patch-4
Browse files Browse the repository at this point in the history
Update StyleContainer.md
  • Loading branch information
Robin Frischmann committed Apr 25, 2016
2 parents ef19f4c + 9ebffca commit ed761ce
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 ed761ce

Please sign in to comment.