Skip to content

Commit

Permalink
Add docs on pre-processing styles
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jan 18, 2024
1 parent fbee018 commit 4f38ea1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ Sheet.merge(OtherSheet); // Merge the current styles of `OtherSheet` into `Sheet
Sheet.unmerge(OtherSheet); // Remove the current styles of `OtherSheet` from `Sheet`.
```

#### Pre-process styles

If you plan to re-use styles across `Sheet`s, it will be more efficient to use `compile` once and `register` many times instead of `registerStyle`.

## Legacy Browsers

Version 3 requires support for `class`, see [#82](https://github.com/blakeembrey/free-style/issues/82). As of April 2020, that's [95% of browsers](https://caniuse.com/#feat=es6-class). You can import from `free-style/dist.es5` for a version compatible with ES5 (IE 11).
Expand Down

0 comments on commit 4f38ea1

Please sign in to comment.